-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
40 lines (34 loc) · 1009 Bytes
/
.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
language: python
sudo: false
python:
- "3.6"
virtualenv:
system_site_packages: false
install:
- export CONDA=$HOME/miniconda
- export PATH="$CONDA/bin:$PATH"
# install conda, but only if it doesn't already exist
- command -v conda > /dev/null || {
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -f -p $CONDA; }
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# try to create env, but ignore if it fails -- probably cached.
- conda env create -q || true
- source activate gala
- conda info -a
# install coveralls for reporting
- 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 == 3.6 ]]; then coveralls; fi
cache:
directories:
- $HOME/miniconda
- $HOME/.matplotlib