-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
38 lines (32 loc) · 1.05 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:
- "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 -f test-environment.yml || true
- source activate skantest
- conda info -a
# install coveralls for reporting
- pip install coveralls
# Install gala
- printenv PWD
# Build locally, pytest confuses local and global installs
- pip install -e .
script:
- pytest
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then make numba-clean; export NUMBA_DISABLE_JIT=1; py.test --cov-report term-missing --cov .; coveralls; fi
cache:
directories:
- $HOME/miniconda