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