Skip to content

Commit b0320a4

Browse files
committed
MAINT: Update fsaverage
1 parent 8b0d631 commit b0320a4

File tree

2 files changed

+22
-33
lines changed

2 files changed

+22
-33
lines changed

.circleci/config.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ jobs:
2525
git fetch upstream master;
2626
fi
2727
28-
# Load our data
29-
- restore_cache:
30-
keys:
31-
- data-cache-0
32-
- pip-cache
33-
3428
- run:
3529
name: Spin up Xvfb
3630
command: |
@@ -43,11 +37,18 @@ jobs:
4337
command: |
4438
sudo apt-get install qt5-default
4539
40+
# Load our data
41+
- restore_cache:
42+
keys:
43+
- data-cache-0
44+
- pip-cache
45+
4646
- run:
4747
name: Get Python running
4848
command: |
4949
pip install --user -q --upgrade pip numpy
5050
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"
5152
- save_cache:
5253
key: pip-cache
5354
paths:
@@ -59,17 +60,18 @@ jobs:
5960
command: |
6061
LIBGL_DEBUG=verbose python -c "from mayavi import mlab; import matplotlib.pyplot as plt; mlab.figure(); plt.figure()"
6162
echo $SUBJECTS_DIR
63+
6264
- run:
6365
name: Get data
6466
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)"
7269
ls $SUBJECTS_DIR
70+
- save_cache:
71+
key: data-cache-0
72+
paths:
73+
- "~/subjects"
74+
7375
- run:
7476
name: Install PySurfer
7577
command: |
@@ -85,15 +87,10 @@ jobs:
8587
path: doc/_build/html/
8688
destination: html
8789

88-
- save_cache:
89-
key: data-cache-0
90-
paths:
91-
- "~/subjects"
9290

9391
workflows:
9492
version: 2
9593

9694
default:
9795
jobs:
9896
- build_docs
99-

.travis.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
language: c
22
sudo: false
3-
3+
dist: xenial
4+
services:
5+
- xvfb
46
env:
57
global: PYTHON_VERSION=3.7
68
CONDA_DEPENDENCIES="numpy scipy matplotlib pyqt>=5.9 coverage pytest pytest-cov flake8 pygments traits traitsui pyface"
79
PIP_DEPENDENCIES="codecov pytest-sugar pytest-faulthandler nibabel imageio imageio-ffmpeg"
810
DISPLAY=:99.0
11+
SUBJECTS_DIR=~/subjects
912

1013
matrix:
1114
include:
@@ -32,32 +35,21 @@ before_install:
3235
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
3336
unset -f cd;
3437
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;
3938
- git clone https://github.com/astropy/ci-helpers.git
4039
- source ci-helpers/travis/setup_conda.sh
4140
- if [ "$PYTHON_VERSION" != "2.7" ]; then
4241
pip install vtk;
4342
pip install mayavi;
4443
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)"
4547

4648
install:
4749
- python setup.py build
4850
- python setup.py install
4951
- SRC_DIR=$(pwd)
5052

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-
6153
script:
6254
- cd ${SRC_DIR}
6355
- pytest surfer --cov=surfer -v

0 commit comments

Comments
 (0)