-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
202 lines (177 loc) · 5.58 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# ==================================================================
# tubex-lib - travis test script
# ==================================================================
language: c++
addons:
apt:
sources:
- deadsnakes
- chef-current-precise
packages:
- cmake
- python3.5
matrix:
include:
# One environment for python binding:
- sudo: true
services:
- docker
env: DOCKER_IMAGE=benensta/pyibex-docker
install:
- docker pull $DOCKER_IMAGE
script:
- chmod a+x scripts/docker/build_pybinding.sh
- docker run --rm -v `pwd`:/io $DOCKER_IMAGE /io/scripts/docker/build_pybinding.sh
- ls wheelhouse
# Other environments for C++ tests (g++ versions, trees..)
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env:
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
# todo - os: linux
# todo addons:
# todo apt:
# todo sources:
# todo - ubuntu-toolchain-r-test
# todo packages:
# todo - g++-7
# todo env:
# todo - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
# Configuration for C++ tests:
before_install:
- eval "${MATRIX_EVAL}"
cache:
directories:
- $HOME/capd
- $HOME/ibex-lib
install:
# For documentation
- sudo apt-get install python3.5 python3-setuptools python3-pip
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 1 # using python3 as default version
- sudo python3 -m pip install sphinx_rtd_theme breathe sphinx-tabs
- sudo apt-get install python3-sphinx doxygen graphviz
# For Python wrapping
#- sudo python3 -m pip install wheel
#- sudo python3 -m pip install --upgrade pip
#- sudo python3 -m pip install pyibex
#- sudo python3 -m pip install --upgrade pyibex==1.8.0
- pwd
- ls
- export ORIGIN_DIR=$PWD
- cd ..
- pwd
- ls
- cd $ORIGIN_DIR
# IBEX
- bash scripts/dependencies/install_ibex.sh
# CAPD
- bash scripts/dependencies/install_capd.sh
# Environment variables
- export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:$HOME/tubex-lib/build_install
- export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:$HOME/ibex-lib/build_install
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
script:
#- py_version=$(python -c "import sys; print(sys.version[:3])") # default python version
#- echo "$py_version"
- cd $ORIGIN_DIR
- pwd
- ls
#- git submodule init ; git submodule update # for pybind11 submodule
- mkdir build -p
- cd build
# Without synthesis tree
# Building lib + tests
- cmake -DCMAKE_INSTALL_PREFIX=$HOME/tubex-lib/build_install
-DCMAKE_PREFIX_PATH=$HOME/ibex-lib/build_install
-DWITH_PYTHON=OFF
-DBUILD_TESTS=ON
-DWITH_TUBE_TREE=OFF
-DWITH_CAPD=ON
-DTEST_EXAMPLES=ON ..
- make api
# Again for doxygen2docstring
- cmake -DCMAKE_INSTALL_PREFIX=$HOME/tubex-lib/build_install
-DCMAKE_PREFIX_PATH=$HOME/ibex-lib/build_install
-DWITH_PYTHON=OFF
-DBUILD_TESTS=ON
-DWITH_TUBE_TREE=OFF
-DWITH_CAPD=ON
-DTEST_EXAMPLES=ON ..
##-DPYTHON_EXECUTABLE=/usr/bin/python3.5 ..
- make
- make doc
- make install
#- cd python/python_package
#- /usr/bin/python3.5 setup.py develop --user
#- /usr/bin/python3.5 pytubex/tests/test_arithmetic.py
#- cd ../../
# Building the examples
- cd ../examples
- find . -type d -name build -prune -exec rm -rf {} \;
- cd basics
- find . -name "ex\_*" | xargs -L 1 bash -c 'cd "$0" && ./build.sh && cd ..'
- cd ../robotics
- find . -name "ex\_*" | xargs -L 1 bash -c 'cd "$0" && ./build.sh && cd ..'
- cd ../tuto
- find . * -maxdepth 0 | grep -P "^[0-9]" | xargs -L 1 bash -c 'cd "$0" && ./build.sh && cd ..'
- cd ../lie_group
- find . -name "ex\_*" | xargs -L 1 bash -c 'cd "$0" && ./build.sh && cd ..'
- cd ../../build
# Testing
- make test
- ./../examples/tuto/05_dyn_rangebearing/build/05_dyn_rangebearing
# With synthesis tree for all created tubes
# Building lib + tests
- cmake -DCMAKE_INSTALL_PREFIX=$HOME/tubex-lib/build_install
-DCMAKE_PREFIX_PATH=$HOME/ibex-lib/build_install
-DWITH_PYTHON=OFF
-DBUILD_TESTS=ON
-DWITH_TUBE_TREE=ON
-DWITH_CAPD=ON
-DTEST_EXAMPLES=ON ..
- make api
# Again for doxygen2docstring
- cmake -DCMAKE_INSTALL_PREFIX=$HOME/tubex-lib/build_install
-DCMAKE_PREFIX_PATH=$HOME/ibex-lib/build_install
-DWITH_PYTHON=OFF
-DBUILD_TESTS=ON
-DWITH_TUBE_TREE=ON
-DWITH_CAPD=ON
-DTEST_EXAMPLES=ON ..
##-DPYTHON_EXECUTABLE=/usr/bin/python3.5 ..
- make
- make doc
- make install
#- cd python/python_package
#- /usr/bin/python3.5 setup.py develop --user
#- /usr/bin/python3.5 pytubex/tests/test_arithmetic.py
#- cd ../../
# Building the examples
- cd ../examples
- find . -type d -name build -prune -exec rm -rf {} \;
- cd basics
- find . -name "ex\_*" | xargs -L 1 bash -c 'cd "$0" && ./build.sh && cd ..'
- cd ../robotics
- find . -name "ex\_*" | xargs -L 1 bash -c 'cd "$0" && ./build.sh && cd ..'
- cd ../tuto
- find . * -maxdepth 0 | grep -P "^[0-9]" | xargs -L 1 bash -c 'cd "$0" && ./build.sh && cd ..'
- cd ../lie_group
- find . -name "ex\_*" | xargs -L 1 bash -c 'cd "$0" && ./build.sh && cd ..'
- cd ../../build
# Testing
- make test
- ./../examples/tuto/05_dyn_rangebearing/build/05_dyn_rangebearing