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
|
2343
|
34 # For DCMTK 3.6.2:
|
|
35 - if [ $TRAVIS_OS_NAME == linux -a $TRAVIS_MINGW == ON ]; then sudo apt-get install i686-w64-mingw32 wine; fi
|
1264
|
36
|
2343
|
37 # For DCMTK 3.6.0:
|
|
38 # - if [ $TRAVIS_OS_NAME == linux -a $TRAVIS_MINGW == ON ]; then sudo apt-get install mingw; fi
|
1258
|
39
|
|
40 before_script:
|
|
41 - mkdir Build
|
|
42 - cd Build
|
1265
|
43 - if [ $TRAVIS_OS_NAME == linux -a $TRAVIS_MINGW == OFF ]; then cmake
|
1264
|
44 -DCMAKE_BUILD_TYPE=Debug "-DDCMTK_LIBRARIES=CharLS;dcmjpls;wrap;oflog"
|
1261
|
45 -DALLOW_DOWNLOADS=ON -DUSE_SYSTEM_BOOST=OFF -DUSE_SYSTEM_MONGOOSE=OFF -DUSE_SYSTEM_JSONCPP=OFF
|
|
46 -DUSE_SYSTEM_GOOGLE_LOG=OFF -DUSE_SYSTEM_PUGIXML=OFF -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON
|
|
47 ..; fi
|
1265
|
48 - if [ $TRAVIS_OS_NAME == linux -a $TRAVIS_MINGW == ON ]; then cmake
|
1264
|
49 -DCMAKE_BUILD_TYPE=Debug -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DALLOW_DOWNLOADS=ON
|
|
50 -DCMAKE_TOOLCHAIN_FILE=Resources/MinGWToolchain.cmake
|
|
51 ..; fi
|
|
52 - if [ $TRAVIS_OS_NAME == osx ]; then cmake
|
|
53 -DCMAKE_BUILD_TYPE=Debug -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DALLOW_DOWNLOADS=ON
|
|
54 ..; fi
|
1261
|
55
|
1269
|
56 script: make && if [ $TRAVIS_MINGW == OFF ]; then ./UnitTests; fi
|
1254
|
57
|
1269
|
58 #script: cp ../README Orthanc
|
|
59 #deploy:
|
|
60 # provider: releases
|
|
61 # api_key:
|
|
62 # secure: WU+niKLAKMoJHST5EK23BayK4qXSrXELKlJYc8wRjMO4ay1KSgvzlY2UGKeW1EPClBfZZ0Uh5VKF8l34exsfirFuwCX2qceozduZproUszZ4Z88X8wt8Ctu8tBuuKLZYFc9iNH4zw+QZyRuPyXK9iWpS0L9O20pqy5upTsagM3o=
|
|
63 # file_glob: true
|
|
64 # file:
|
|
65 # - 'Build/Orthanc'
|
|
66 # - 'Build/UnitTests'
|
|
67 # - 'BuildMinGW32/Orthanc.exe'
|
|
68 # - 'BuildMinGW32/UnitTests.exe'
|
|
69 # skip_cleanup: true
|
|
70 # on:
|
|
71 # all_branches: true
|