annotate .travis.yml @ 4993:8feb00fea93d

fix build
author Alain Mazy <am@osimis.io>
date Mon, 02 May 2022 14:31:41 +0200
parents 1f08180cd86f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1254
19b908908ebf travis setup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 language: cpp
19b908908ebf travis setup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
1264
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
3 env:
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
4 - TRAVIS_MINGW=OFF
4130
4899c3135479 fix travis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3296
diff changeset
5 #- TRAVIS_MINGW=ON # MinGW32 is not available anymore (2020-07-08)
1264
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
6
1254
19b908908ebf travis setup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 compiler:
1261
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1260
diff changeset
8 - gcc
1269
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
9 - clang
1258
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1257
diff changeset
10
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1257
diff changeset
11 os:
1269
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
12 - osx
1261
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1260
diff changeset
13 - linux
1258
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1257
diff changeset
14
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1257
diff changeset
15 osx_image: xcode61
1254
19b908908ebf travis setup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16
1261
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1260
diff changeset
17 matrix:
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1260
diff changeset
18 exclude:
1264
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
19 # This excludes OSX builds from the build matrix for gcc
1262
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1261
diff changeset
20 - os: osx
1261
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1260
diff changeset
21 compiler: gcc
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1260
diff changeset
22
1264
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
23 # Do not compile for OS X or clang when MinGW is enabled
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
24 - os: osx
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
25 env: TRAVIS_MINGW=ON
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
26 - compiler: clang
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
27 env: TRAVIS_MINGW=ON
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
28
1255
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1254
diff changeset
29 before_install:
1261
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1260
diff changeset
30 - if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get update -qq && sudo apt-get install
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1260
diff changeset
31 -qq build-essential unzip cmake mercurial uuid-dev libcurl4-openssl-dev liblua5.1-0-dev
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1260
diff changeset
32 libgtest-dev libpng-dev libsqlite3-dev libssl-dev zlib1g-dev libdcmtk2-dev libwrap0-dev
1264
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
33 libcharls-dev; fi
2349
a337adb29187 travis: fallback to dcmtk 3.6.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2348
diff changeset
34 # For DCMTK 3.6.2 - Can't make it compile in static mode with MinGW32 on the
a337adb29187 travis: fallback to dcmtk 3.6.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2348
diff changeset
35 # Ubuntu Precise (12.04) that is used by Travis:
a337adb29187 travis: fallback to dcmtk 3.6.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2348
diff changeset
36 # - if [ $TRAVIS_OS_NAME == linux -a $TRAVIS_MINGW == ON ]; then sudo apt-get install mingw-w64 gcc-mingw-w64-i686 g++-mingw-w64-i686 wine; fi
1264
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
37
2343
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2342
diff changeset
38 # For DCMTK 3.6.0:
2350
49152eef696f travis: fix
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2349
diff changeset
39 - if [ $TRAVIS_OS_NAME == linux -a $TRAVIS_MINGW == ON ]; then sudo apt-get install mingw32; fi
1258
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1257
diff changeset
40
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1257
diff changeset
41 before_script:
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1257
diff changeset
42 - mkdir Build
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1257
diff changeset
43 - cd Build
1265
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1264
diff changeset
44 - if [ $TRAVIS_OS_NAME == linux -a $TRAVIS_MINGW == OFF ]; then cmake
1264
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
45 -DCMAKE_BUILD_TYPE=Debug "-DDCMTK_LIBRARIES=CharLS;dcmjpls;wrap;oflog"
3149
d2d2a0ad833b fix travis build script
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2542
diff changeset
46 -DALLOW_DOWNLOADS=ON -DUSE_SYSTEM_BOOST=OFF -DUSE_SYSTEM_CIVETWEB=OFF -DUSE_SYSTEM_JSONCPP=OFF
2403
06536b4f30c0 rename USE_GOOGLE_TEST_DEBIAN_SOURCE_PACKAGE as USE_GOOGLE_TEST_DEBIAN_PACKAGE
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2402
diff changeset
47 -DUSE_SYSTEM_GOOGLE_LOG=OFF -DUSE_SYSTEM_PUGIXML=OFF -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE=ON
4346
1f08180cd86f fix travis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4345
diff changeset
48 -DBOOST_LOCALE_BACKEND=icu -DUSE_SYSTEM_OPENSSL=OFF -DUSE_SYSTEM_CURL=OFF
4130
4899c3135479 fix travis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3296
diff changeset
49 ../OrthancServer; fi
1265
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1264
diff changeset
50 - if [ $TRAVIS_OS_NAME == linux -a $TRAVIS_MINGW == ON ]; then cmake
1264
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
51 -DCMAKE_BUILD_TYPE=Debug -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DALLOW_DOWNLOADS=ON
3292
bb9266715c4c fixing travis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3149
diff changeset
52 -DCMAKE_TOOLCHAIN_FILE=Resources/MinGWToolchain.cmake -DDCMTK_STATIC_VERSION=3.6.0
3293
394d7eab2c9c fix travis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3292
diff changeset
53 -DUSE_LEGACY_JSONCPP=ON -DBOOST_LOCALE_BACKEND=libiconv
4130
4899c3135479 fix travis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3296
diff changeset
54 ../OrthancServer; fi
1264
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
55 - if [ $TRAVIS_OS_NAME == osx ]; then cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
56 -DCMAKE_BUILD_TYPE=Debug -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DALLOW_DOWNLOADS=ON
3292
bb9266715c4c fixing travis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3149
diff changeset
57 -DBOOST_LOCALE_BACKEND=icu
4130
4899c3135479 fix travis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3296
diff changeset
58 ../OrthancServer; fi
1261
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1260
diff changeset
59
3296
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3293
diff changeset
60 # Old releases of MinGW are not compatible with GoogleTest 1.8.1
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3293
diff changeset
61 script: make Orthanc ServeFolders ModalityWorklists && if [ $TRAVIS_MINGW == OFF ]; then make UnitTests && ./UnitTests; fi
1254
19b908908ebf travis setup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
62
1269
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
63 #script: cp ../README Orthanc
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
64 #deploy:
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
65 # provider: releases
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
66 # api_key:
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
67 # secure: WU+niKLAKMoJHST5EK23BayK4qXSrXELKlJYc8wRjMO4ay1KSgvzlY2UGKeW1EPClBfZZ0Uh5VKF8l34exsfirFuwCX2qceozduZproUszZ4Z88X8wt8Ctu8tBuuKLZYFc9iNH4zw+QZyRuPyXK9iWpS0L9O20pqy5upTsagM3o=
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
68 # file_glob: true
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
69 # file:
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
70 # - 'Build/Orthanc'
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
71 # - 'Build/UnitTests'
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
72 # - 'BuildMinGW32/Orthanc.exe'
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
73 # - 'BuildMinGW32/UnitTests.exe'
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
74 # skip_cleanup: true
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
75 # on:
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
76 # all_branches: true