forked from meco-group/omg-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (41 loc) · 1.37 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
env:
global:
- COVERALLS_PARALLEL=1
- NODE_TOTAL=4
matrix:
- NODE_INDEX=0 PY=2.7 CA=3.1.1.post3
- NODE_INDEX=1 PY=2.7 CA=3.1.1.post3
- NODE_INDEX=2 PY=2.7 CA=3.1.1.post3
- NODE_INDEX=3 PY=2.7 CA=3.1.1.post3 PIP_EXTRA=matplotlib2tikz==0.6.18
- NODE_INDEX=0 PY=3.7
- NODE_INDEX=1 PY=3.7
- NODE_INDEX=2 PY=3.7
- NODE_INDEX=3 PY=3.7
sudo: required
dist: trusty
language: generic
notifications:
webhooks: https://coveralls.io/webhook?repo_token=COVERALLS_REPO_TOKEN
before_script:
- set -e
- set -o pipefail # otherwise, piping with grep discards exit statuses
script:
- nosetests --verbosity=2 --nocapture --with-xcoverage --cover-package=omgtools --cover-tests
after_success:
- coveralls
install:
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- pip install .
before_install:
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=$HOME/miniconda3/bin:$PATH
- conda create --quiet --yes -n condaenv python=$PY matplotlib scipy nosexcover coveralls
- source activate condaenv
- if [ ! -z $CA ]; then pip install casadi==$CA; fi
- if [ ! -z $PIP_EXTRA ]; then pip install $PIP_EXTRA; fi
- sudo add-apt-repository main
- sudo apt-get update
- sudo apt-get install -y valgrind xvfb imagemagick