forked from pyomeca/bioptim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (26 loc) · 905 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
# Config file for automatic testing at travis-ci.org
language: python
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-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 config --set auto_update_conda no
- conda update -q conda
install:
- conda update python -cconda-forge
- conda env update -n root -f environment.yml
- conda install pytest-cov black pytest pytest-cov codecov -cconda-forge
- conda install xorg-libx11 xorg-libxtst -cconda-forge
- conda list
script:
- black . -l120 --exclude "external/*"
- python setup.py install
- pytest -v --color=yes --cov-report term-missing --cov=biorbd_optim tests
after_success:
- codecov
notifications:
email:
on_success: never
on_failure: always