annotate .travis.yml @ 3103:81b58b549845

back to using 'var' instead of 'let' since let is not supported by many old browsers. All variables declaration have been moved to the top of the function to better show that their scope is the function
author Alain Mazy <alain@mazy.be>
date Thu, 10 Jan 2019 10:51:36 +0100
parents 83489e20ad0c
children d2d2a0ad833b
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
1269
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
5 - TRAVIS_MINGW=ON
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"
1261
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1260
diff changeset
46 -DALLOW_DOWNLOADS=ON -DUSE_SYSTEM_BOOST=OFF -DUSE_SYSTEM_MONGOOSE=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
1261
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1260
diff changeset
48 ..; fi
1265
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1264
diff changeset
49 - if [ $TRAVIS_OS_NAME == linux -a $TRAVIS_MINGW == ON ]; then cmake
1264
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
50 -DCMAKE_BUILD_TYPE=Debug -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DALLOW_DOWNLOADS=ON
2542
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2403
diff changeset
51 -DCMAKE_TOOLCHAIN_FILE=Resources/MinGWToolchain.cmake -DUSE_DCMTK_360=ON -DUSE_LEGACY_JSONCPP=ON
1264
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
52 ..; fi
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
53 - if [ $TRAVIS_OS_NAME == osx ]; then cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
54 -DCMAKE_BUILD_TYPE=Debug -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DALLOW_DOWNLOADS=ON
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1263
diff changeset
55 ..; fi
1261
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1260
diff changeset
56
1269
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
57 script: make && if [ $TRAVIS_MINGW == OFF ]; then ./UnitTests; fi
1254
19b908908ebf travis setup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
58
1269
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
59 #script: cp ../README Orthanc
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
60 #deploy:
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
61 # provider: releases
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
62 # api_key:
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
63 # secure: WU+niKLAKMoJHST5EK23BayK4qXSrXELKlJYc8wRjMO4ay1KSgvzlY2UGKeW1EPClBfZZ0Uh5VKF8l34exsfirFuwCX2qceozduZproUszZ4Z88X8wt8Ctu8tBuuKLZYFc9iNH4zw+QZyRuPyXK9iWpS0L9O20pqy5upTsagM3o=
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
64 # file_glob: true
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
65 # file:
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
66 # - 'Build/Orthanc'
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
67 # - 'Build/UnitTests'
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
68 # - 'BuildMinGW32/Orthanc.exe'
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
69 # - 'BuildMinGW32/UnitTests.exe'
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
70 # skip_cleanup: true
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
71 # on:
d3e1548ca08e remove deploy
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1268
diff changeset
72 # all_branches: true