1254
|
1 language: cpp
|
|
2
|
|
3 compiler:
|
1261
|
4 - gcc
|
1258
|
5 - clang
|
|
6
|
|
7 os:
|
|
8 - osx
|
1261
|
9 - linux
|
1258
|
10
|
|
11 osx_image: xcode61
|
1254
|
12
|
1262
|
13 # This excludes OSX builds from the build matrix for gcc
|
1261
|
14 matrix:
|
|
15 exclude:
|
1262
|
16 - os: osx
|
1261
|
17 compiler: gcc
|
|
18
|
1255
|
19 before_install:
|
1261
|
20 - if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get update -qq && sudo apt-get install
|
|
21 -qq build-essential unzip cmake mercurial uuid-dev libcurl4-openssl-dev liblua5.1-0-dev
|
|
22 libgtest-dev libpng-dev libsqlite3-dev libssl-dev zlib1g-dev libdcmtk2-dev libwrap0-dev
|
|
23 libcharls-dev; fi
|
1258
|
24
|
|
25 before_script:
|
|
26 - mkdir Build
|
|
27 - cd Build
|
1261
|
28 - if [ $TRAVIS_OS_NAME == linux ]; then cmake "-DDCMTK_LIBRARIES=CharLS;dcmjpls;wrap;oflog"
|
|
29 -DALLOW_DOWNLOADS=ON -DUSE_SYSTEM_BOOST=OFF -DUSE_SYSTEM_MONGOOSE=OFF -DUSE_SYSTEM_JSONCPP=OFF
|
|
30 -DUSE_SYSTEM_GOOGLE_LOG=OFF -DUSE_SYSTEM_PUGIXML=OFF -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON
|
|
31 ..; fi
|
|
32 - if [ $TRAVIS_OS_NAME == osx ]; then cmake -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON
|
|
33 -DALLOW_DOWNLOADS=ON ..; fi
|
|
34
|
|
35 script: make && ./UnitTests
|
1254
|
36
|
1261
|
37 deploy:
|
|
38 provider: releases
|
|
39 api_key:
|
|
40 secure: WU+niKLAKMoJHST5EK23BayK4qXSrXELKlJYc8wRjMO4ay1KSgvzlY2UGKeW1EPClBfZZ0Uh5VKF8l34exsfirFuwCX2qceozduZproUszZ4Z88X8wt8Ctu8tBuuKLZYFc9iNH4zw+QZyRuPyXK9iWpS0L9O20pqy5upTsagM3o=
|
|
41 file:
|
|
42 - 'Build/Orthanc'
|
|
43 - 'Build/UnitTests'
|
|
44 on:
|
|
45 repo: jodogne/OrthancMirror
|
|
46 branch: ''
|