Skip to content

Commit b3eda34

Browse files
committed
Merge pull request #1166 from satra/enh/travisdeploy
enh: update travis to deploy to pypi
2 parents 4ededb3 + ddf43a8 commit b3eda34

File tree

1 file changed

+40
-34
lines changed

1 file changed

+40
-34
lines changed

.travis.yml

Lines changed: 40 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,48 @@
11
cache:
2-
- apt
2+
- apt
33
language: python
44
python:
5-
- 2.7
5+
- 2.7
66
env:
7-
- INSTALL_DEB_DEPENDECIES=true
8-
- INSTALL_DEB_DEPENDECIES=false
9-
# Setup anaconda
7+
- INSTALL_DEB_DEPENDECIES=true
8+
- INSTALL_DEB_DEPENDECIES=false
109
before_install:
11-
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.6.0-Linux-x86_64.sh -O miniconda.sh; fi
12-
- chmod +x miniconda.sh
13-
- ./miniconda.sh -b
14-
- export PATH=/home/travis/miniconda/bin:$PATH
15-
- if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; fi
16-
- if $INSTALL_DEB_DEPENDECIES; then sudo ln -s /run/shm /dev/shm; fi
17-
- if $INSTALL_DEB_DEPENDECIES; then bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh); fi
18-
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq --no-install-recommends fsl afni elastix; fi
19-
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq fsl-atlases; fi
20-
- if $INSTALL_DEB_DEPENDECIES; then source /etc/fsl/fsl.sh; fi
21-
22-
# Install packages
10+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
11+
-O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.6.0-Linux-x86_64.sh
12+
-O miniconda.sh; fi
13+
- chmod +x miniconda.sh
14+
- "./miniconda.sh -b"
15+
- export PATH=/home/travis/miniconda/bin:$PATH
16+
- if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; fi
17+
- if $INSTALL_DEB_DEPENDECIES; then sudo ln -s /run/shm /dev/shm; fi
18+
- if $INSTALL_DEB_DEPENDECIES; then bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh);
19+
fi
20+
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq --no-install-recommends
21+
fsl afni elastix; fi
22+
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq fsl-atlases;
23+
fi
24+
- if $INSTALL_DEB_DEPENDECIES; then source /etc/fsl/fsl.sh; fi
2325
install:
24-
- conda update --yes conda
25-
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
26-
- source activate testenv
27-
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then pip install ordereddict; fi
28-
- conda install --yes numpy scipy nose traits networkx dateutil
29-
- pip install nibabel
30-
- pip install python-coveralls
31-
- pip install nose-cov
32-
- pip install https://github.com/RDFLib/rdflib/archive/master.zip
33-
- pip install https://github.com/trungdong/prov/archive/rdf.zip
34-
- python setup.py install
35-
36-
# Run test
26+
- conda update --yes conda
27+
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
28+
- source activate testenv
29+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then pip install ordereddict; fi
30+
- conda install --yes numpy scipy nose traits networkx dateutil
31+
- pip install nibabel
32+
- pip install python-coveralls
33+
- pip install nose-cov
34+
- pip install https://github.com/RDFLib/rdflib/archive/master.zip
35+
- pip install https://github.com/trungdong/prov/archive/rdf.zip
36+
- python setup.py install
3737
script:
38-
- nosetests --with-doctest --with-cov --cov nipype --cov-config .coveragerc --logging-level=INFO
39-
40-
# Calculate coverage
38+
- nosetests --with-doctest --with-cov --cov nipype --cov-config .coveragerc --logging-level=INFO
4139
after_success:
42-
- coveralls --config_file .coveragerc
40+
- coveralls --config_file .coveragerc
41+
deploy:
42+
provider: pypi
43+
user: satra
44+
password:
45+
secure: ZaN6Y4hfybPMi1rW3Qe03irCe/3GU4J4BJsjG+tClVN5Fjc3FCJaYU0k4wNd9q2kMjuRDv1efA9BN/5QasJS32oqs6wHvxzIWA18ucel4BBnAAkuviC1vqi/8Hk/DGB6e1gnmZ1Nv58zVLfn0MwlOKmsGDtvGQWc+HbaV2fS5NA=
46+
on:
47+
tags: true
48+
branch: master

0 commit comments

Comments
 (0)