-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
75 lines (62 loc) · 1.79 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
language: c
dist: xenial
sudo: required
env:
global: PYTHON_VERSION=3.7 TRAVIS_PYTHON_VERSION=3.7 CONDA_VERSION=">=4.7.5"
CONDA_ENVIRONMENT="environment.yml"
matrix:
include:
- os: linux
env: USE_NUMBA="yes" MNE_VERSION="current"
- os: linux
env: USE_NUMBA="no" MNE_VERSION="current"
- os: linux
env: USE_NUMBA="no" MNE_VERSION="0.21"
- os: linux
env: USE_NUMBA="no" MNE_VERSION="0.20"
- os: linux
env: USE_NUMBA="no" MNE_VERSION="0.19"
- os: linux
env: USE_NUMBA="no" MNE_VERSION="0.18"
- os: osx
env: USE_NUMBA="no" MNE_VERSION="current"
before_install:
- curl -O https://raw.githubusercontent.com/mmagnuski/borsar/master/environment.yml
- git clone https://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda.sh
install:
# Rvm overrides cd with a function so that it can hook into it to run
# some scripts, see https://github.com/travis-ci/travis-ci/issues/8703
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
unset -f cd;
fi;
- hash -r
# Useful for debugging any issues with conda
- conda info -a
# install dependencies
- if [ "${USE_NUMBA}" == "yes" ]; then
conda install numba;
fi
- conda install scikit-image
- pip install codecov tqdm
- if [ "${MNE_VERSION}" == "current" ]; then
pip install mne pooch;
fi
- if [ "${MNE_VERSION}" == "0.21" ]; then
pip install mne==0.21.2;
fi
- if [ "${MNE_VERSION}" == "0.20" ]; then
pip install mne==0.20.8;
fi
- if [ "${MNE_VERSION}" == "0.19" ]; then
pip install mne==0.19;
fi
- if [ "${MNE_VERSION}" == "0.18" ]; then
pip install mne==0.18;
fi
- python setup.py develop
script:
# Your test script goes here
- pytest --cov=borsar borsar/
after_success:
- codecov