forked from codac-team/codac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
689 lines (651 loc) · 40.6 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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
# ==================================================================
# tubex-lib - travis test script
# ==================================================================
language: c++
# Should avoid triggering a build when a GitHub release or tag is manually created...
if: tag IS blank
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"
- name: "Ubuntu 18.04"
os: linux
dist: bionic
compiler: gcc
before_install:
- sudo apt-get -q update || true
- sudo apt-get -y install flex bison || true
cache:
install:
script:
- if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -D CMAKE_INSTALL_PREFIX="../../ibex" -D CMAKE_CXX_FLAGS="-fPIC" -D CMAKE_C_FLAGS="-fPIC" .. ; cmake --build . --target install ; cd ../.. ) else echo "Using cached directory." ; fi
- mkdir build ; cd build
- cmake -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" ..
- cmake --build . --target install
- cd ..
# Test C++ program and bundle...
- wget http://www.ensta-bretagne.fr/lebars/Share/tubex_test_win.zip -nv
- unzip -q -o tubex_test_win.zip
- rm -Rf tubex_test_win.zip
- cd tubex_test_win
- mv test ..
- cd ../test
- rm -Rf ../tubex_test_win
- cmake .
- cmake --build .
- ./my_project
# - name: "Ubuntu 18.04 C++ Python 3.8"
# os: linux
# dist: bionic
# compiler: gcc
# language: python
# python: 3.8
# before_install:
# - python --version || true
# - python3 --version || true
# - pip --version || true
# - pip3 --version || true
# - sudo python --version || true
# - sudo python3 --version || true
# - sudo pip --version || true
# - sudo pip3 --version || true
# - sudo apt-get -q update || true
# - sudo apt-get -y install flex bison || true
# - sudo apt-get -y install doxygen graphviz || true
# #
# #sudo apt-get -y install python3-pip python3-setuptools python3-wheel python3-breathe sphinx-issues
# #sudo pip3 install --upgrade pip
# #sudo pip3 install --upgrade pyIbex
# #
# #sudo apt-get -y install python3.8-dev
# #sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1
# #sudo python -m pip install --upgrade pip
# #sudo python -m pip install --upgrade pyIbex
# #sudo python -m pip install --upgrade setuptools wheel
# #
# - pip install --upgrade pip
# - pip install --upgrade pyIbex
# - pip install --upgrade setuptools wheel
# cache:
# directories: ibex
# install:
# script:
# - if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -D CMAKE_INSTALL_PREFIX="../../ibex" -D CMAKE_CXX_FLAGS="-fPIC" -D CMAKE_C_FLAGS="-fPIC" .. ; cmake --build . --target install ; cd ../.. ) else echo "Using cached directory." ; fi
# - mkdir build ; cd build
# - cmake -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D CMAKE_BUILD_TYPE=Debug -D WITH_PYTHON=ON -D CMAKE_CXX_FLAGS="-fPIC" ..
# - cmake --build . --target api
# - cmake -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D CMAKE_BUILD_TYPE=Debug -D WITH_PYTHON=ON -D CMAKE_CXX_FLAGS="-fPIC" ..
# - cmake --build . --target install
# - cmake --build . --target pip_package
# # Test python program and wheel...
# - cp *.whl ../
# #sudo pip3 install ../*.whl
# #sudo python -m pip install ../*.whl
# - pip install ../*.whl
# - python ../examples/tuto/01_getting_started/01_getting_started.py
# - cd ..
# # Test C++ program and bundle...
# - wget http://www.ensta-bretagne.fr/lebars/Share/tubex_test_win.zip -nv
# - unzip -q -o tubex_test_win.zip
# - rm -Rf tubex_test_win.zip
# - cd tubex_test_win
# - mv test ..
# - cd ../test
# - rm -Rf ../tubex_test_win
# - cmake .
# - cmake --build .
# - ./my_project
- name: "Raspbian Buster pi Docker"
os: linux
dist: bionic
compiler: gcc
services:
- docker
before_install:
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
cache:
install:
script:
- "docker run -i -v \"${PWD}/..:${PWD}/..\" lebarsfa/pi:buster-ibex /bin/bash -c \"uname -a && cat /etc/os-release && cd ${PWD} && lsb_release -a && mkdir build ; cd build && cmake -D CMAKE_PREFIX_PATH=../ibex -D CMAKE_INSTALL_PREFIX=../../tubex .. && cmake --build . --target install && cd ../.. && wget http://www.ensta-bretagne.fr/lebars/Share/tubex_test_win.zip -nv && unzip -q -o tubex_test_win.zip && rm -Rf tubex_test_win.zip && cd tubex_test_win && mv test .. && cd ../test && rm -Rf ../tubex_test_win && cmake . && cmake --build . && ./my_project \""
- name: "Mac OS Xcode 10.1"
os: osx
osx_image: xcode10.1
cache:
directories: ibex
install:
script:
- if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -D CMAKE_INSTALL_PREFIX="../../ibex" -D CMAKE_CXX_FLAGS="-fPIC -Wno-everything" -D CMAKE_C_FLAGS="-fPIC -Wno-everything" .. ; cmake --build . --target install ; cd ../.. ) else echo "Using cached directory." ; fi
- mkdir build ; cd build
- cmake -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" ..
- cmake --build . --target install
- cd ..
# Test C++ program and bundle...
- wget http://www.ensta-bretagne.fr/lebars/Share/tubex_test_win.zip -nv
- unzip -q -o tubex_test_win.zip
- rm -Rf tubex_test_win.zip
- cd tubex_test_win
- mv test ..
- cd ../test
- rm -Rf ../tubex_test_win
- cmake .
- cmake --build .
- ./my_project
- name: "Windows Visual Studio 2019 x86 C++"
os: windows
env: CMAKE_PARAM_G="Visual Studio 16" CMAKE_PARAM_A=Win32 CFG=x86_vc16
before_install:
- choco install -y visualstudio2019buildtools visualstudio2019-workload-vctools winflexbison
cache:
directories: ibex
install:
script:
- if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_INSTALL_PREFIX="../../ibex" -D INTERVAL_LIB=filib .. ; cmake --build . --config Release --target install ; cd ../.. ) else echo "Using cached directory." ; fi
- mkdir build ; cd build
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" ..
- cmake --build . --config Debug --target install
- cd ..
# Test C++ program and bundle...
- wget http://www.ensta-bretagne.fr/lebars/Share/tubex_test_win.zip -nv
- 7z x tubex_test_win.zip -y
- rm -Rf tubex_test_win.zip ; cd tubex_test_win; rm -Rf ibex tubex ; cp -Rf ../ibex . ; cp -Rf ../tubex .; cd ..
- 7z a -y tubex_test_${CFG}.zip tubex_test_win
- cd tubex_test_win/test
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} .
- cmake --build . --config Release
- cmd //c "Release\my_project.exe"
- cd ../..
- name: "Windows Visual Studio 2019 x64 C++ Python 3.8"
os: windows
env: CMAKE_PARAM_G="Visual Studio 16" CMAKE_PARAM_A=x64 CFG=x64_vc16 CPCFG=-win_amd64 PY_V_F=3.8.3 PY_V_MDM=3.8 PY_V_MM=38
before_install:
- choco install -y visualstudio2019buildtools visualstudio2019-workload-vctools winflexbison
- cmd //c "choco install -y doxygen.install graphviz & choco install -y python --version=${PY_V_F} & refreshenv.cmd & set PATH=C:\Python${PY_V_MM};C:\Python${PY_V_MM}\Scripts;%PATH% & python -m pip install --upgrade pip & pip install --upgrade pyIbex & pip install --upgrade wheel setuptools & git clone -b v3.1.1 ttps://github.com/sphinx-doc/sphinx & cd sphinx & pip install . & pip install --upgrade breathe sphinx-issues sphinx-tabs sphinx_rtd_theme & refreshenv.cmd"
- export PATH=/c/Python${PY_V_MM}:/c/Python${PY_V_MM}/Scripts:$PATH
cache:
directories: ibex
install:
script:
- if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_INSTALL_PREFIX="../../ibex" -D INTERVAL_LIB=filib .. ; cmake --build . --config Release --target install ; cd ../.. ) else echo "Using cached directory." ; fi
- mkdir build ; cd build
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target api
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target install
- cmake --build . --config Debug --target pip_package
# Test python program and wheel...
- cp `ls *.whl` ../`ls *.whl | sed "s/py3-none-any/cp${PY_V_MM}-cp${PY_V_MM}${CPCFG}/"`
- pip install ../*.whl
- python ../examples/tuto/01_getting_started/01_getting_started.py
- cd ..
# Test C++ program and bundle...
- wget http://www.ensta-bretagne.fr/lebars/Share/tubex_test_win.zip -nv
- 7z x tubex_test_win.zip -y
- rm -Rf tubex_test_win.zip ; cd tubex_test_win; rm -Rf ibex tubex ; cp -Rf ../ibex . ; cp -Rf ../tubex .; cd ..
- 7z a -y tubex_test_${CFG}.zip tubex_test_win
- cd tubex_test_win/test
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} .
- cmake --build . --config Release
- cmd //c "Release\my_project.exe"
- cd ../..
- name: "Windows Visual Studio 2017 x86 C++"
os: windows
env: CMAKE_PARAM_G="Visual Studio 15" CMAKE_PARAM_A=Win32 CFG=x86_vc15
before_install:
- choco install -y winflexbison
cache:
directories: ibex
install:
script:
- if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_INSTALL_PREFIX="../../ibex" -D INTERVAL_LIB=filib .. ; cmake --build . --config Release --target install ; cd ../.. ) else echo "Using cached directory." ; fi
- mkdir build ; cd build
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" ..
- cmake --build . --config Debug --target install
- cd ..
# Test C++ program and bundle...
- wget http://www.ensta-bretagne.fr/lebars/Share/tubex_test_win.zip -nv
- 7z x tubex_test_win.zip -y
- rm -Rf tubex_test_win.zip ; cd tubex_test_win; rm -Rf ibex tubex ; cp -Rf ../ibex . ; cp -Rf ../tubex .; cd ..
- 7z a -y tubex_test_${CFG}.zip tubex_test_win
- cd tubex_test_win/test
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} .
- cmake --build . --config Release
- cmd //c "Release\my_project.exe"
- cd ../..
- name: "Windows Visual Studio 2017 x64 C++ Python 3.7"
os: windows
env: CMAKE_PARAM_G="Visual Studio 15" CMAKE_PARAM_A=x64 CFG=x64_vc15 CPCFG=m-win_amd64 PY_V_F=3.7.7 PY_V_MDM=3.7 PY_V_MM=37
before_install:
- choco install -y winflexbison
- cmd //c "choco install -y doxygen.install graphviz & choco install -y python --version=${PY_V_F} & refreshenv.cmd & set PATH=C:\Python${PY_V_MM};C:\Python${PY_V_MM}\Scripts;%PATH% & python -m pip install --upgrade pip & pip install --upgrade pyIbex & pip install --upgrade wheel setuptools & git clone -b v3.1.1 ttps://github.com/sphinx-doc/sphinx & cd sphinx & pip install . & pip install --upgrade breathe sphinx-issues sphinx-tabs sphinx_rtd_theme & refreshenv.cmd"
- export PATH=/c/Python${PY_V_MM}:/c/Python${PY_V_MM}/Scripts:$PATH
cache:
directories: ibex
install:
script:
- if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_INSTALL_PREFIX="../../ibex" -D INTERVAL_LIB=filib .. ; cmake --build . --config Release --target install ; cd ../.. ) else echo "Using cached directory." ; fi
- mkdir build ; cd build
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target api
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target install
- cmake --build . --config Debug --target pip_package
# Test python program and wheel...
- cp `ls *.whl` ../`ls *.whl | sed "s/py3-none-any/cp${PY_V_MM}-cp${PY_V_MM}${CPCFG}/"`
- pip install ../*.whl
- python ../examples/tuto/01_getting_started/01_getting_started.py
- cd ..
# Test C++ program and bundle...
- wget http://www.ensta-bretagne.fr/lebars/Share/tubex_test_win.zip -nv
- 7z x tubex_test_win.zip -y
- rm -Rf tubex_test_win.zip ; cd tubex_test_win; rm -Rf ibex tubex ; cp -Rf ../ibex . ; cp -Rf ../tubex .; cd ..
- 7z a -y tubex_test_${CFG}.zip tubex_test_win
- cd tubex_test_win/test
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} .
- cmake --build . --config Release
- cmd //c "Release\my_project.exe"
- cd ../..
- name: "Windows Visual Studio 2015 x86 C++ Python 3.6"
os: windows
env: CMAKE_PARAM_G="Visual Studio 14" CMAKE_PARAM_A=Win32 CFG=x86_vc14 CPCFG=m-win32 PY_V_F="3.6.8 --x86" PY_V_MDM=3.6 PY_V_MM=36
before_install:
- choco install -y vcbuildtools -ia "/InstallSelectableItems Win81SDK_CppBuildSKUV1;VisualCppBuildTools_ATLMFC_SDK" winflexbison
- cmd //c "choco install -y doxygen.install graphviz & choco install -y python --version=${PY_V_F} & refreshenv.cmd & set PATH=C:\Python${PY_V_MM};C:\Python${PY_V_MM}\Scripts;%PATH% & python -m pip install --upgrade pip & pip install --upgrade pyIbex & pip install --upgrade wheel setuptools & git clone -b 3.1.1 https://github.com/sphinx-doc/sphinx & cd sphinx & pip install . & pip install --upgrade breathe sphinx-issues sphinx-tabs sphinx_rtd_theme & refreshenv.cmd"
- export PATH=/c/Python${PY_V_MM}:/c/Python${PY_V_MM}/Scripts:$PATH
cache:
directories: ibex
install:
script:
- if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_INSTALL_PREFIX="../../ibex" -D INTERVAL_LIB=filib .. ; cmake --build . --config Release --target install ; cd ../.. ) else echo "Using cached directory." ; fi
- mkdir build ; cd build
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target api
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target install
- cmake --build . --config Debug --target pip_package
# Test python program and wheel...
- cp `ls *.whl` ../`ls *.whl | sed "s/py3-none-any/cp${PY_V_MM}-cp${PY_V_MM}${CPCFG}/"`
- pip install ../*.whl
- python ../examples/tuto/01_getting_started/01_getting_started.py
- cd ..
# Test C++ program and bundle...
- wget http://www.ensta-bretagne.fr/lebars/Share/tubex_test_win.zip -nv
- 7z x tubex_test_win.zip -y
- rm -Rf tubex_test_win.zip ; cd tubex_test_win; rm -Rf ibex tubex ; cp -Rf ../ibex . ; cp -Rf ../tubex .; cd ..
- 7z a -y tubex_test_${CFG}.zip tubex_test_win
- cd tubex_test_win/test
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} .
- cmake --build . --config Release
- cmd //c "Release\my_project.exe"
- cd ../..
- name: "Windows Visual Studio 2015 x86 Python 3.4"
os: windows
env: CMAKE_PARAM_G="Visual Studio 14" CMAKE_PARAM_A=Win32 CFG=x86_vc14 CPCFG=m-win32 PY_V_F="3.4.4.20200110 --x86" PY_V_MDM=3.4 PY_V_MM=34
before_install:
- choco install -y vcbuildtools -ia "/InstallSelectableItems Win81SDK_CppBuildSKUV1;VisualCppBuildTools_ATLMFC_SDK" winflexbison
- cmd //c "choco install -y doxygen.install graphviz & choco install -y python --version=${PY_V_F} & refreshenv.cmd & set PATH=C:\Python${PY_V_MM};C:\Python${PY_V_MM}\Scripts;%PATH% & python -m pip install --upgrade pip==19.1.1 & pip install --upgrade pyIbex & pip install --upgrade wheel setuptools & refreshenv.cmd"
- export PATH=/c/Python${PY_V_MM}:/c/Python${PY_V_MM}/Scripts:$PATH
cache:
directories: ibex
install:
script:
- if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_INSTALL_PREFIX="../../ibex" -D INTERVAL_LIB=filib .. ; cmake --build . --config Release --target install ; cd ../.. ) else echo "Using cached directory." ; fi
- mkdir build ; cd build
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target api
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target install
- cmake --build . --config Debug --target pip_package
# Test python program and wheel...
- cp `ls *.whl` ../`ls *.whl | sed "s/py3-none-any/cp${PY_V_MM}-cp${PY_V_MM}${CPCFG}/"`
- pip install ../*.whl
- python ../examples/tuto/01_getting_started/01_getting_started.py
- cd ..
- name: "Windows Visual Studio 2015 x64 C++ Python 3.6"
os: windows
env: CMAKE_PARAM_G="Visual Studio 14" CMAKE_PARAM_A=x64 CFG=x64_vc14 CPCFG=m-win_amd64 PY_V_F=3.6.8 PY_V_MDM=3.6 PY_V_MM=36
before_install:
- choco install -y vcbuildtools -ia "/InstallSelectableItems Win81SDK_CppBuildSKUV1;VisualCppBuildTools_ATLMFC_SDK" winflexbison
- cmd //c "choco install -y doxygen.install graphviz & choco install -y python --version=${PY_V_F} & refreshenv.cmd & set PATH=C:\Python${PY_V_MM};C:\Python${PY_V_MM}\Scripts;%PATH% & python -m pip install --upgrade pip & pip install --upgrade pyIbex & pip install --upgrade wheel setuptools & git clone -b v3.1.1 ttps://github.com/sphinx-doc/sphinx & cd sphinx & pip install . & pip install --upgrade breathe sphinx-issues sphinx-tabs sphinx_rtd_theme & refreshenv.cmd"
- export PATH=/c/Python${PY_V_MM}:/c/Python${PY_V_MM}/Scripts:$PATH
cache:
directories: ibex
install:
script:
- if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_INSTALL_PREFIX="../../ibex" -D INTERVAL_LIB=filib .. ; cmake --build . --config Release --target install ; cd ../.. ) else echo "Using cached directory." ; fi
- mkdir build ; cd build
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target api
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target install
- cmake --build . --config Debug --target pip_package
# Test python program and wheel...
- cp `ls *.whl` ../`ls *.whl | sed "s/py3-none-any/cp${PY_V_MM}-cp${PY_V_MM}${CPCFG}/"`
- pip install ../*.whl
- python ../examples/tuto/01_getting_started/01_getting_started.py
- cd ..
# Test C++ program and bundle...
- wget http://www.ensta-bretagne.fr/lebars/Share/tubex_test_win.zip -nv
- 7z x tubex_test_win.zip -y
- rm -Rf tubex_test_win.zip ; cd tubex_test_win; rm -Rf ibex tubex ; cp -Rf ../ibex . ; cp -Rf ../tubex .; cd ..
- 7z a -y tubex_test_${CFG}.zip tubex_test_win
- cd tubex_test_win/test
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} .
- cmake --build . --config Release
- cmd //c "Release\my_project.exe"
- cd ../..
- name: "Windows Visual Studio 2015 x64 Python 3.5"
os: windows
env: CMAKE_PARAM_G="Visual Studio 14" CMAKE_PARAM_A=x64 CFG=x64_vc14 CPCFG=m-win_amd64 PY_V_F=3.5.4.20200110 PY_V_MDM=3.5 PY_V_MM=35
before_install:
- choco install -y vcbuildtools -ia "/InstallSelectableItems Win81SDK_CppBuildSKUV1;VisualCppBuildTools_ATLMFC_SDK" winflexbison
- cmd //c "choco install -y doxygen.install graphviz & choco install -y python --version=3.5.4.20200110 & refreshenv.cmd & set PATH=C:\Python${PY_V_MM};C:\Python${PY_V_MM}\Scripts;%PATH% & python -m pip install --upgrade pip & pip install --upgrade pyIbex & pip install --upgrade wheel setuptools & git clone -b 3.1.1 https://github.com/sphinx-doc/sphinx & cd sphinx & pip install . & pip install --upgrade breathe sphinx-issues sphinx-tabs sphinx_rtd_theme & refreshenv.cmd"
- export PATH=/c/Python35:/c/Python35/Scripts:$PATH
cache:
directories: ibex
install:
script:
- if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_INSTALL_PREFIX="../../ibex" -D INTERVAL_LIB=filib .. ; cmake --build . --config Release --target install ; cd ../.. ) else echo "Using cached directory." ; fi
- mkdir build ; cd build
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target api
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target install
- cmake --build . --config Debug --target pip_package
# Test python program and wheel...
- cp `ls *.whl` ../`ls *.whl | sed "s/py3-none-any/cp${PY_V_MM}-cp${PY_V_MM}${CPCFG}/"`
- pip install ../*.whl
- python ../examples/tuto/01_getting_started/01_getting_started.py
- cd ..
- name: "Windows Visual Studio 2015 x64 Python 3.4"
os: windows
env: CMAKE_PARAM_G="Visual Studio 14" CMAKE_PARAM_A=x64 CFG=x64_vc14 CPCFG=m-win_amd64 PY_V_F=3.4.4.20200110 PY_V_MDM=3.4 PY_V_MM=34
before_install:
- choco install -y vcbuildtools -ia "/InstallSelectableItems Win81SDK_CppBuildSKUV1;VisualCppBuildTools_ATLMFC_SDK" winflexbison
- cmd //c "choco install -y doxygen.install graphviz & choco install -y python --version=${PY_V_F} & refreshenv.cmd & set PATH=C:\Python34;C:\Python34\Scripts;%PATH% & python -m pip install --upgrade pip==19.1.1 & pip install --upgrade pyIbex& pip install --upgrade wheel setuptools & refreshenv.cmd"
- export PATH=/c/Python${PY_V_MM}:/c/Python${PY_V_MM}/Scripts:$PATH
cache:
directories: ibex
install:
script:
- if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_INSTALL_PREFIX="../../ibex" -D INTERVAL_LIB=filib .. ; cmake --build . --config Release --target install ; cd ../.. ) else echo "Using cached directory." ; fi
- mkdir build ; cd build
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target api
- cmake -G "${CMAKE_PARAM_G}" -A ${CMAKE_PARAM_A} -D CMAKE_CXX_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_C_FLAGS=" /D WIN32 /EHsc /D _CRT_SECURE_NO_WARNINGS /wd4267 /wd4244 /wd4305" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" -D WITH_PYTHON=ON ..
- cmake --build . --config Debug --target install
- cmake --build . --config Debug --target pip_package
# Test python program and wheel...
- cp `ls *.whl` ../`ls *.whl | sed "s/py3-none-any/cp${PY_V_MM}-cp${PY_V_MM}${CPCFG}/"`
- pip install ../*.whl
- python ../examples/tuto/01_getting_started/01_getting_started.py
- cd ..
- name: "Windows Qt 5.12.6 MinGW 7.3.0 x86"
os: windows
env: CMAKE_PARAM_G="MSYS Makefiles" CFG=x86_mingw7
before_install:
- choco uninstall -y mingw
# Need to free up disk space...
- df
- rm -Rf "/C/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools" || true
- df
- rm -Rf "/C/Program Files (x86)/Windows Kits" || true
- df
- rm -Rf "/C/Windows/SoftwareDistribution" || true
- df
- choco install -y winflexbison make patch
- wget http://download.qt.io/archive/qt/5.12/5.12.6/qt-opensource-windows-x86-5.12.6.exe --no-check-certificate -nv
- cmd //c "move /Y qt-opensource-windows-x86-5.12.6.exe %SystemDrive%\ "
- wget http://www.ensta-bretagne.fr/lebars/Share/qt-installer-5.12.6-mingw73_32.qs --no-check-certificate -nv
- cmd //c "move /Y qt-installer-5.12.6-mingw73_32.qs %SystemDrive%\ "
- cmd //c netsh advfirewall set allprofiles state on
- cmd //c netsh advfirewall firewall add rule name="Qt offline installer" dir=out action=block program="%SystemDrive%\qt-opensource-windows-x86-5.12.6.exe" enable=yes
# Take several min...
- cmd //c "%SystemDrive%\qt-opensource-windows-x86-5.12.6.exe --script %SystemDrive%\qt-installer-5.12.6-mingw73_32.qs"
- cmd //c netsh advfirewall firewall del rule name="Qt offline installer"
- cmd //c netsh advfirewall set allprofiles state off
- cmd //c "del /f /q %SystemDrive%\qt-opensource-windows-x86-5.12.6.exe"
- df
- export PATH=/c/Qt/Qt5.12.6/Tools/mingw730_32/bin:$PATH
cache:
directories: ibex
install:
script:
- if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -G "${CMAKE_PARAM_G}" -D CMAKE_INSTALL_PREFIX="../../ibex" -D CMAKE_CXX_FLAGS="-fPIC" -D CMAKE_C_FLAGS="-fPIC" -D INTERVAL_LIB=filib .. ; cmake --build . --target install ; cd ../.. ) else echo "Using cached directory." ; fi
- mkdir build ; cd build
- cmake -G "MSYS Makefiles" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" ..
- cmake --build . --target install
- cd ..
# Test C++ program and bundle...
- wget http://www.ensta-bretagne.fr/lebars/Share/tubex_test_win.zip -nv
- 7z x tubex_test_win.zip -y
- rm -Rf tubex_test_win.zip ; cd tubex_test_win; rm -Rf ibex tubex ; cp -Rf ../ibex . ; cp -Rf ../tubex .; cd ..
- 7z a -y tubex_test_${CFG}.zip tubex_test_win
- cd tubex_test_win/test
- cmake -G "${CMAKE_PARAM_G}" .
- cmake --build .
- ./my_project.exe
- cd ../..
- name: "Windows MinGW 8.1.0 x64"
os: windows
env: CMAKE_PARAM_G="MSYS Makefiles" CFG=x64_mingw8
before_install:
- choco install -y winflexbison make patch
cache:
directories: ibex
install:
script:
- if [ ! -e "ibex/include/ibex.h" ]; then ( git clone -b develop https://github.com/lebarsfa/ibex-lib.git ; cd ibex-lib ; mkdir build ; cd build ; cmake -G "${CMAKE_PARAM_G}" -D CMAKE_INSTALL_PREFIX="../../ibex" -D CMAKE_CXX_FLAGS="-fPIC" -D CMAKE_C_FLAGS="-fPIC" -D INTERVAL_LIB=filib .. ; cmake --build . --target install ; cd ../.. ) else echo "Using cached directory." ; fi
- mkdir build ; cd build
- cmake -G "MSYS Makefiles" -D CMAKE_PREFIX_PATH="ibex" -D CMAKE_INSTALL_PREFIX="../tubex" ..
- cmake --build . --target install
- cd ..
# Test C++ program and bundle...
- wget http://www.ensta-bretagne.fr/lebars/Share/tubex_test_win.zip -nv
- 7z x tubex_test_win.zip -y
- rm -Rf tubex_test_win.zip ; cd tubex_test_win; rm -Rf ibex tubex ; cp -Rf ../ibex . ; cp -Rf ../tubex .; cd ..
- 7z a -y tubex_test_${CFG}.zip tubex_test_win
- cd tubex_test_win/test
- cmake -G "${CMAKE_PARAM_G}" .
- cmake --build .
- ./my_project.exe
- cd ../..
# 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-issues 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
deploy:
- provider: releases
api_key:
secure: ILyVRxUJHYAYHY6aGeY0QSVpwRF/Nm5piue7jkOArZXvwwjavPT8Gm/ZpXeor5rOQV/7rY4ACoOgMyhcFFKrL7BnKmzJUPPGyLez6aZz5ZT0I7YsQIG9CPPko0nIihSOircAjii8XaYwTntFAL9AqCgQk2PQ9HajzhbQrur4RPXFIwhJd9DDSCf8gO1WRyqRkL3gZSaq3GjQP++ZGFR9S5YlpCWVaG88Vq+ygrR9894tQ2on8FnOeE4bS768I36yT/w8IzES2o3oDh1bVECI2oEkwb2IYL5J5si1b0Wo6ZQdKNLu/50mohHbtKYzGfWiliRMXikXVwSXA/Y5G8ou1SCNLb7fM1s2E8KpjeOBHJJzC6syYaQzRZ611Srt3DpdlFa+s4aivgaKQ+AK+gromXwinE61FLEpUMglu7+3jFs6sMNNeYLgpGLjpnquyClljHmms79gm3T7dCm8C5ZFsyCDJq3ETEGDfIxN256dqLE6nu/oWuU6koQ3aMlVytMKG/veMb+jJY/J+f7upkUIBDtw0RKxk08gKX84wnl2brcHOOWAkSxcRINe/KUVDoR/7B3LAiarOyglazdEfRAmTE2o+te82/T0Wv0LoBn5/zXHZvtlpJYDuXndJ8HB8NWQl7sLOiqh4KbYkoyjPt9bn5XHvbQM/E7LLYIzpiOWPT4=
on:
repo: lebarsfa/tubex-lib
all_branches: true
skip_cleanup: true
overwrite: true
draft: true
prerelease: true
file_glob: true
file:
- "*.zip"
- "*.whl"
- "wheelhouse/*.whl"
- provider: releases
api_key:
secure: Y+ZO/wvqZp29/cSnAqJKOAybSGlu8ALDsPS63zQXPtUSiUejfnoDLi77ANlHxUF7MhXlo38VanwYR/jGnXeCUPtX1Seg8W2v1mXFNaUKCki/bkEeLtK2uXAD5flxoBULPYcdspNbGlyzohxOZgr7VFNk0TkIg7jSlUkGuSAlJy81qh6ctVFtKhTsLDwi8ZKenwFFmlBNzw3dXR5c9AloBSCLRfWlwq2INYeEfgkItBMIe+7jh7RaacXoNrV/JkUQNcp4W5wA/zgMkOXqXSf7LPRIXd80zCgCmZ+ODqKTVHx5gXZxUPvW3cAtsm7RU4VNwpXiC2ckNRpLcCF8/dav3XG2hZrddUzvEXbrePnONrNQHrdszVokkQoJBYPFsZuUR4lDqV25aGVEvsn5tnBfIH6Rf2abF+pUkuKnWFqCO71kfwPBY5wKHi2SdaKVcZm06jD1tp87OuOt4T0DPBs4/SyQ7925eXk4Ol0MwCsGj1Pml+R90khq74xFe48KOxXLIYxHOqBO600HL3dYVrpQTZ/3rDpiTKlyGn8he+K7gCHFlJ85uBgp89cQei8aUOACLKhecT/rZqPIoZNsDe28AtDrj5LeLYeGSQDlukjukYfKcZF10itcSF8UusgNfexuLUPz5BUf2xrNF0cCFOAzP0auhgxRLC9VPGdEzvY0N1c=
on:
repo: SimonRohou/tubex-lib
all_branches: true
skip_cleanup: true
overwrite: true
draft: true
prerelease: true
file_glob: true
file:
- "*.zip"
- "*.whl"
- "wheelhouse/*.whl"