forked from markovmodel/PyEMMA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (48 loc) · 1.15 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
43
44
45
46
47
48
49
50
51
52
53
54
55
language: c
git:
submodules: false
depth: 500
os:
- osx
- linux
sudo: false
env:
global:
- MINICONDA_DIR="$HOME/miniconda"
- PYTHONHASHSEED=0
- OMP_NUM_THREADS=2
- PYEMMA_NJOBS=1
- MACOSX_DEPLOYMENT_TARGET=10.9
- CONDA_BUILD=YES
matrix:
- CONDA_PY=3.5
- CONDA_PY=3.6
- CONDA_PY=3.7
matrix:
exclude: # test only 3.7 on osx.
- env: CONDA_PY=3.5
os: osx
- env: CONDA_PY=3.6
os: osx
include: # test pip install
- env: CONDA_PY=3.7 CONDA_BUILD=NO python="3.7"
os: linux
dist: xenial # You’ll need to add dist: xenial to use Python 3.7 and higher.
language: python
sudo: true
before_install:
- if [[ ${CONDA_BUILD} = YES ]]; then
source devtools/ci/travis/install_miniconda.sh;
fi
script:
- if [[ ${CONDA_BUILD} = YES ]]; then
conda build -q devtools/conda-recipe -c conda-forge;
else
pip install pip -U;
pip install . ;
rm -r pyemma;
pip install pytest tables;
pytest --pyargs pyemma;
fi
after_script:
- if [[ ${CONDA_BUILD} = YES ]]; then bash <(curl -s https://codecov.io/bash) -f $HOME/coverage.xml -e CONDA_PY; fi