File tree Expand file tree Collapse file tree 2 files changed +22
-33
lines changed Expand file tree Collapse file tree 2 files changed +22
-33
lines changed Original file line number Diff line number Diff line change 25
25
git fetch upstream master;
26
26
fi
27
27
28
- # Load our data
29
- - restore_cache :
30
- keys :
31
- - data-cache-0
32
- - pip-cache
33
-
34
28
- run :
35
29
name : Spin up Xvfb
36
30
command : |
@@ -43,11 +37,18 @@ jobs:
43
37
command : |
44
38
sudo apt-get install qt5-default
45
39
40
+ # Load our data
41
+ - restore_cache :
42
+ keys :
43
+ - data-cache-0
44
+ - pip-cache
45
+
46
46
- run :
47
47
name : Get Python running
48
48
command : |
49
49
pip install --user -q --upgrade pip numpy
50
50
pip install --user -q --upgrade --progress-bar off scipy matplotlib vtk pyqt5 pyqt5-sip nibabel sphinx numpydoc pillow imageio imageio-ffmpeg https://api.github.com/repos/sphinx-gallery/sphinx-gallery/zipball/master mayavi
51
+ pip install --user -q --upgrade "https://api.github.com/repos/mne-tools/mne-python/zipball/master"
51
52
- save_cache :
52
53
key : pip-cache
53
54
paths :
@@ -59,17 +60,18 @@ jobs:
59
60
command : |
60
61
LIBGL_DEBUG=verbose python -c "from mayavi import mlab; import matplotlib.pyplot as plt; mlab.figure(); plt.figure()"
61
62
echo $SUBJECTS_DIR
63
+
62
64
- run :
63
65
name : Get data
64
66
command : |
65
- if [ ! -d $SUBJECTS_DIR ]; then
66
- mkdir $SUBJECTS_DIR;
67
- cd $SUBJECTS_DIR;
68
- wget http://faculty.washington.edu/larsoner/fsaverage_min.zip;
69
- unzip fsaverage_min.zip;
70
- rm fsaverage_min.zip;
71
- fi;
67
+ mkdir -p $SUBJECTS_DIR;
68
+ python -c "import mne; mne.datasets.fetch_fsaverage(verbose=True)"
72
69
ls $SUBJECTS_DIR
70
+ - save_cache :
71
+ key : data-cache-0
72
+ paths :
73
+ - " ~/subjects"
74
+
73
75
- run :
74
76
name : Install PySurfer
75
77
command : |
@@ -85,15 +87,10 @@ jobs:
85
87
path : doc/_build/html/
86
88
destination : html
87
89
88
- - save_cache :
89
- key : data-cache-0
90
- paths :
91
- - " ~/subjects"
92
90
93
91
workflows :
94
92
version : 2
95
93
96
94
default :
97
95
jobs :
98
96
- build_docs
99
-
Original file line number Diff line number Diff line change 1
1
language : c
2
2
sudo : false
3
-
3
+ dist : xenial
4
+ services :
5
+ - xvfb
4
6
env :
5
7
global : PYTHON_VERSION=3.7
6
8
CONDA_DEPENDENCIES="numpy scipy matplotlib pyqt>=5.9 coverage pytest pytest-cov flake8 pygments traits traitsui pyface"
7
9
PIP_DEPENDENCIES="codecov pytest-sugar pytest-faulthandler nibabel imageio imageio-ffmpeg"
8
10
DISPLAY=:99.0
11
+ SUBJECTS_DIR=~/subjects
9
12
10
13
matrix :
11
14
include :
@@ -32,32 +35,21 @@ before_install:
32
35
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
33
36
unset -f cd;
34
37
fi;
35
- - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
36
- echo "Starting Xvfb...";
37
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render;
38
- fi;
39
38
- git clone https://github.com/astropy/ci-helpers.git
40
39
- source ci-helpers/travis/setup_conda.sh
41
40
- if [ "$PYTHON_VERSION" != "2.7" ]; then
42
41
pip install vtk;
43
42
pip install mayavi;
44
43
fi;
44
+ - mkdir -p $SUBJECTS_DIR
45
+ - pip install "https://api.github.com/repos/mne-tools/mne-python/zipball/master"
46
+ - python -c "import mne; mne.datasets.fetch_fsaverage(verbose=True)"
45
47
46
48
install :
47
49
- python setup.py build
48
50
- python setup.py install
49
51
- SRC_DIR=$(pwd)
50
52
51
- before_script :
52
- # Let's create a (fake) display on Travis, and let's use a funny resolution
53
- - cd ~
54
- - wget --quiet http://faculty.washington.edu/larsoner/fsaverage_min.zip
55
- - mkdir subjects
56
- - cd subjects
57
- - unzip ../fsaverage_min.zip
58
- - cd ..
59
- - export SUBJECTS_DIR="${PWD}/subjects"
60
-
61
53
script :
62
54
- cd ${SRC_DIR}
63
55
- pytest surfer --cov=surfer -v
You can’t perform that action at this time.
0 commit comments