forked from pyomeca/bioviz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (37 loc) · 1.33 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
# Config file for automatic testing at travis-ci.org
language: python
matrix:
include:
- os: linux
dist: trusty
before_install:
# Add stuff for Python3 tests as well
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda;
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
choco install miniconda3 --params="'/AddToPath:1'";
export PATH="/c/tools/miniconda3/scripts:/c/tools/miniconda3/:$PATH";
fi
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --set auto_update_conda no
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then conda update -q conda; fi
install:
- conda env update -n root -f environment.yml
- source activate root
- python setup.py install
script:
- conda install pytest
- xvfb-run --server-args="-screen 0 1024x768x24" pytest -v --color=yes testsTravis
after_success:
- conda install -c conda-forge codecov
- codecov
notifications:
email:
on_success: never
on_failure: always