2014-07-12 16:35:55 +03:00
language : cpp
2016-10-11 23:52:47 +02:00
os :
- linux
- osx
dist : trusty
sudo : required
2014-07-12 20:20:02 +03:00
2014-07-12 16:35:55 +03:00
before_install :
2016-11-24 20:05:58 +02:00
- test $TRAVIS_BRANCH != coverity_scan -o ${TRAVIS_JOB_NUMBER##*.} = 1 || exit 0
2016-11-05 21:20:46 +02:00
- if [[ $VCMI_PLATFORM == 'linux' ]]; then . .travis.linux; fi
- if [[ $VCMI_PLATFORM == 'mac' ]]; then . .travis.osx; fi
- if [[ $VCMI_PLATFORM == 'mxe' ]]; then . .travis.mxe; fi
2014-07-12 16:35:55 +03:00
before_script :
- mkdir build
- cd build
2016-11-27 06:59:33 +02:00
- if [[ $TRAVIS_BRANCH != 'coverity_scan' ]]; then cmake -G "Unix Makefiles" .. $VCMI_CMAKE_FLAGS; fi
2014-07-12 16:35:55 +03:00
script :
2016-11-24 20:05:58 +02:00
- test $TRAVIS_BRANCH != coverity_scan || exit 0
2016-10-11 23:52:47 +02:00
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cd ..; xcodebuild -project osx/osx-vcmibuilder/vcmibuilder.xcodeproj/ -configuration Release CONFIGURATION_BUILD_DIR=..; cd build; fi
- make -j2
2014-07-13 11:44:39 +03:00
2014-07-12 20:20:02 +03:00
env :
2016-11-24 20:33:06 +02:00
matrix :
- ignore=this
2016-11-24 20:05:58 +02:00
global :
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
2016-11-24 20:18:41 +02:00
- secure : "NMg+qtQB4DIZ/KqlDeIn3K7A7Ydksdpnbv6Ha9n4bSSA0AT8wlPwbHXvQmiR8qYs6cnz4fyY6NVcBe7X3bdR8jWyPNAS0l0QByqG12q3dBpEtNNn0X5u/GS3wHse5+ObNAF9a83+xACTQj2UdxqHgJ3LFGzdBpQt3kLsc8NDnn8="
2014-07-13 11:44:39 +03:00
2014-07-12 19:50:48 +03:00
matrix :
2014-07-12 20:20:02 +03:00
exclude :
- env : ignore=this
2014-07-12 19:50:48 +03:00
include :
2016-10-11 23:52:47 +02:00
- os : linux
compiler : clang
2017-03-09 01:52:13 +02:00
env : VCMI_PLATFORM='linux' REAL_CC=clang-3.6 REAL_CXX=clang++-3.6 PACKAGE=clang-3.6 SUPPORT=libstdc++-4.8-dev VCMI_CMAKE_FLAGS='-DENABLE_TEST=0'
2016-10-11 23:52:47 +02:00
- os : linux
compiler : clang
2017-03-09 01:52:13 +02:00
env : VCMI_PLATFORM='linux' REAL_CC=clang-3.4 REAL_CXX=clang++-3.4 PACKAGE=clang-3.4 SUPPORT=libstdc++-4.8-dev VCMI_CMAKE_FLAGS='-DENABLE_TEST=0'
2016-10-11 23:52:47 +02:00
- os : linux
compiler : gcc
2017-03-09 01:52:13 +02:00
env : VCMI_PLATFORM='linux' REAL_CC=gcc-4.8 REAL_CXX=g++-4.8 PACKAGE=g++-4.8 SUPPORT= VCMI_CMAKE_FLAGS='-DENABLE_TEST=0'
2016-11-05 21:20:46 +02:00
- os : linux
env : VCMI_PLATFORM='mxe' MXE_TARGET=i686-w64-mingw32.shared VCMI_CMAKE_FLAGS='-DENABLE_TEST=0'
sudo : required
2016-10-11 23:52:47 +02:00
- os : osx
2016-11-05 21:20:46 +02:00
env : VCMI_PLATFORM='mac'
2014-07-13 11:44:39 +03:00
2016-11-24 20:05:58 +02:00
addons :
coverity_scan :
project :
name : vcmi/vcmi
description : Build submitted via Travis CI
2016-11-25 02:24:14 +02:00
notification_email : coverity@arseniyshestakov.com
2017-06-09 14:06:31 +02:00
build_command_prepend : "cov-configure --compiler clang-3.6 --comptype clangcc && cov-configure --comptype clangcxx --compiler clang++-3.6 && cmake -G Ninja .. -DCMAKE_BUILD_TYPE=DEBUG -DENABLE_LAUNCHER=0 -DENABLE_TEST=0"
build_command : ninja -j 3
2016-11-24 20:05:58 +02:00
branch_pattern : coverity_scan
2014-07-12 16:35:55 +03:00
notifications :
email :
recipients :
2017-06-09 14:06:31 +02:00
- noreply@vcmi.eu
2014-07-12 16:35:55 +03:00
on_success : change
2014-07-14 17:01:44 +03:00
on_failure : always
2017-06-09 14:06:31 +02:00
slack :
secure : "KHXFe14FFKtw5mErWbj730+utqy7i/3AUobWfAMAGvWI5sJYlhbBU+KvvCoD2SlRQg3mQqgwVw8NBJF1Mffs7WcRmrFFFmuMqZxFLAfKBd3T0CxWpAGfnfNgDmlfV4OfEgQWk1pakEPOymhxbbmLUuCjykZDuTcioxAk0UAHDwY="