forked from janelia-flyem/gala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (32 loc) · 1.06 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
language: python
sudo: false
python:
- "2.7"
- "3.4"
virtualenv:
system_site_packages: false
install:
# all installing is now handled by conda as it is faster and more robust
- wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib networkx cython h5py pillow scikit-image scikit-learn setuptools pip
- source activate test-environment
# custom package not available from conda
- pip install viridis
# install testing and coverage packages
- pip install pytest pytest-cov
- pip install coveralls
# Install gala
- printenv PWD
# Build locally, pytest confuses local and global installs
- python setup.py develop
script:
# Run tests
- py.test
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then coveralls; fi