forked from meco-group/omg-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (52 loc) · 1.86 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
56
57
58
59
env:
global:
- CASADIVERSION=3.1.0-rc1
- LD_LIBRARY_PATH=$HOME/libhsl
- IPOPT_DEFAULT_LINEAR_SOLVER=ma57
# works from matplotlib 1.5 onwards
# - MPLBACKEND=Agg # Matplotlib backend; must be headless to run on travis
sudo: required
dist: trusty
language: generic
before_script:
- set -e
- set -o pipefail # otherwise, piping with grep discards exit statuses
- git clone https://github.com/meco-group/bob.git
- pushd bob && source setup.sh && popd
- bob_get libhsl.tar.gz && mkdir $HOME/libhsl && tar -xf libhsl.tar.gz -C $HOME/libhsl
script:
- cd examples
- chmod 644 *.py # nose doesnt match executable files
- "nosetests -s --verbosity=4 -i '\\.py$' . --with-xcoverage --cover-package=omgtools --cover-tests 2> >(grep -v -P 'DEBUG: (?!wantFile)')"
- pushd export
- make && pushd bin
- ./Point2Point
- popd
- popd
- pushd export_f
- make && pushd bin
- ./FormationPoint2Point
- popd
- popd
- pushd export_r
- make && pushd bin
- ./RendezVous
- popd
- popd
after_success:
- coveralls
install:
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- sudo python setup.py install
before_install:
- wget http://sourceforge.net/projects/casadi/files/CasADi/$CASADIVERSION/linux/casadi-py27-np1.9.1-v$CASADIVERSION.tar.gz/download -O casadi-py27-np1.9.1-v$CASADIVERSION.tar.gz
- mkdir $HOME/casadi-py27-np1.9.1-v$CASADIVERSION
- tar -zxf casadi-py27-np1.9.1-v$CASADIVERSION.tar.gz -C $HOME/casadi-py27-np1.9.1-v$CASADIVERSION
- sudo apt-get install -y python-numpy python-scipy python-matplotlib python-pip xvfb
- mkdir -p $HOME/.matplotlib/
#- "echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc"
- sudo pip install matplotlib2tikz
- export PYTHONPATH=$PYTHONPATH:$HOME/casadi-py27-np1.9.1-v$CASADIVERSION
- sudo pip install nosexcover coveralls
- sudo apt-get install valgrind