Mercurial > hg > orthanc
annotate .travis.yml @ 3143:30b1bec25aac Orthanc-1.4.2
closing branch Orthanc-1.4.2
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Jan 2019 18:34:08 +0100 |
parents | 83489e20ad0c |
children | d2d2a0ad833b |
rev | line source |
---|---|
1254 | 1 language: cpp |
2 | |
1264 | 3 env: |
4 - TRAVIS_MINGW=OFF | |
1269 | 5 - TRAVIS_MINGW=ON |
1264 | 6 |
1254 | 7 compiler: |
1261 | 8 - gcc |
1269 | 9 - clang |
1258 | 10 |
11 os: | |
1269 | 12 - osx |
1261 | 13 - linux |
1258 | 14 |
15 osx_image: xcode61 | |
1254 | 16 |
1261 | 17 matrix: |
18 exclude: | |
1264 | 19 # This excludes OSX builds from the build matrix for gcc |
1262 | 20 - os: osx |
1261 | 21 compiler: gcc |
22 | |
1264 | 23 # Do not compile for OS X or clang when MinGW is enabled |
24 - os: osx | |
25 env: TRAVIS_MINGW=ON | |
26 - compiler: clang | |
27 env: TRAVIS_MINGW=ON | |
28 | |
1255 | 29 before_install: |
1261 | 30 - if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get update -qq && sudo apt-get install |
31 -qq build-essential unzip cmake mercurial uuid-dev libcurl4-openssl-dev liblua5.1-0-dev | |
32 libgtest-dev libpng-dev libsqlite3-dev libssl-dev zlib1g-dev libdcmtk2-dev libwrap0-dev | |
1264 | 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 | 37 |
2343 | 38 # For DCMTK 3.6.0: |
2350 | 39 - if [ $TRAVIS_OS_NAME == linux -a $TRAVIS_MINGW == ON ]; then sudo apt-get install mingw32; fi |
1258 | 40 |
41 before_script: | |
42 - mkdir Build | |
43 - cd Build | |
1265 | 44 - if [ $TRAVIS_OS_NAME == linux -a $TRAVIS_MINGW == OFF ]; then cmake |
1264 | 45 -DCMAKE_BUILD_TYPE=Debug "-DDCMTK_LIBRARIES=CharLS;dcmjpls;wrap;oflog" |
1261 | 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 | 48 ..; fi |
1265 | 49 - if [ $TRAVIS_OS_NAME == linux -a $TRAVIS_MINGW == ON ]; then cmake |
1264 | 50 -DCMAKE_BUILD_TYPE=Debug -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DALLOW_DOWNLOADS=ON |
2542 | 51 -DCMAKE_TOOLCHAIN_FILE=Resources/MinGWToolchain.cmake -DUSE_DCMTK_360=ON -DUSE_LEGACY_JSONCPP=ON |
1264 | 52 ..; fi |
53 - if [ $TRAVIS_OS_NAME == osx ]; then cmake | |
54 -DCMAKE_BUILD_TYPE=Debug -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DALLOW_DOWNLOADS=ON | |
55 ..; fi | |
1261 | 56 |
1269 | 57 script: make && if [ $TRAVIS_MINGW == OFF ]; then ./UnitTests; fi |
1254 | 58 |
1269 | 59 #script: cp ../README Orthanc |
60 #deploy: | |
61 # provider: releases | |
62 # api_key: | |
63 # secure: WU+niKLAKMoJHST5EK23BayK4qXSrXELKlJYc8wRjMO4ay1KSgvzlY2UGKeW1EPClBfZZ0Uh5VKF8l34exsfirFuwCX2qceozduZproUszZ4Z88X8wt8Ctu8tBuuKLZYFc9iNH4zw+QZyRuPyXK9iWpS0L9O20pqy5upTsagM3o= | |
64 # file_glob: true | |
65 # file: | |
66 # - 'Build/Orthanc' | |
67 # - 'Build/UnitTests' | |
68 # - 'BuildMinGW32/Orthanc.exe' | |
69 # - 'BuildMinGW32/UnitTests.exe' | |
70 # skip_cleanup: true | |
71 # on: | |
72 # all_branches: true |