-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
42 lines (34 loc) · 1.71 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
language: python
python:
- 2.7
git:
submodules: false
env:
global:
secure: IvL1vYm6Dmp1QHI0eYeMgm0hyxfsIneYOqH20WnrlRqjPPaci9Dzrtw9Aljb4UdyLUKxysJtIIIv2wMa+FWZAGAOJ/vETob6Q85t/hy9eekkKMnHbBv2NamvB1Q2htfJncEL4P5QdwZQem6Nyu12CQbhIwPVycBw6itntpQ5Gbk=
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libjpeg-dev && sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
install:
- pip install --no-index --trusted-host travis-wheels.scikit-image.org -f http://travis-wheels.scikit-image.org nose numpy==1.9.2 scipy==0.14 Pillow pytz
- pip install webapp2 requests[security] webob db-sqlite3 sphinx numpydoc coverage mne
- pip install git+https://github.com/nipy/nibabel.git
- pip install git+https://github.com/scitran/[email protected]_value_vr_mismatch
- pip install git+https://github.com/moloney/dcmstack.git@6d49fe01235c08ae63c76fa2f3943b49c9b9832d
before_script:
- git clone http://github.com/scitran/testdata ${TRAVIS_BUILD_DIR}/test/testdata
script:
- nosetests --with-doctest --with-coverage --cover-package=scitran.data
after_success:
- cd docs && make html && mv _build/html /tmp/html
- git config --global user.email "[email protected]"
- git config --global user.name "travis-ci"
- git config --global push.default simple
- git clone --quiet --branch=gh-pages https://${GHTOKEN}@github.com/${TRAVIS_REPO_SLUG} $HOME/gh-pages > /dev/null
- rm -rf $HOME/gh-pages/*
- mv /tmp/html/* $HOME/gh-pages/
- touch $HOME/gh-pages/.nojekyll
- cd $HOME/gh-pages
- git add -A
- git commit -m "updates docs to rev ${TRAVIS_COMMIT}"
- "[[ ${TRAVIS_BRANCH} == 'master' ]] && git push || echo 'branch != master, skip pushing docs.'"