2014-10-04 11:23:23 +00:00
|
|
|
os:
|
|
|
|
- linux
|
2015-06-28 14:38:11 +00:00
|
|
|
# - osx
|
2013-04-02 21:15:22 +00:00
|
|
|
language: cpp
|
2016-01-19 10:15:36 +00:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2013-04-05 22:45:04 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2014-12-17 22:22:20 +00:00
|
|
|
- coverity_scan
|
2014-02-13 11:30:53 +00:00
|
|
|
- /openmw-.*$/
|
2014-12-17 22:19:37 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
|
|
# via the "travis encrypt" command using the project repo's public key
|
2015-01-10 14:54:13 +00:00
|
|
|
- secure: "jybGzAdUbqt9vWR/GEnRd96BgAi/7Zd1+2HK68j/i/8+/1YH2XxLOy4Jv/DUBhBlJIkxs/Xv8dRcUlFOclZDHX1d/9Qnsqd3oUVkD7k1y7cTOWy9TBQaE/v/kZo3LpzA3xPwwthrb0BvqIbOfIELi5fS5s8ba85WFRg3AX70wWE="
|
2014-12-17 22:19:37 +00:00
|
|
|
addons:
|
|
|
|
coverity_scan:
|
|
|
|
project:
|
2015-01-10 15:07:12 +00:00
|
|
|
name: "OpenMW/openmw"
|
2014-12-17 22:19:37 +00:00
|
|
|
description: "<Your project description here>"
|
|
|
|
notification_email: scrawl@baseoftrash.de
|
2016-01-21 13:33:26 +00:00
|
|
|
build_command_prepend: "cmake . -DBUILD_UNITTESTS=FALSE"
|
|
|
|
build_command: "make -j2"
|
2014-12-17 22:19:37 +00:00
|
|
|
branch_pattern: coverity_scan
|
2015-03-17 13:45:31 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
env:
|
|
|
|
ANALYZE="scan-build-3.6 --use-cc clang-3.6 --use-c++ clang++-3.6 "
|
|
|
|
compiler: clang
|
|
|
|
allow_failures:
|
|
|
|
- env: ANALYZE="scan-build-3.6 --use-cc clang-3.6 --use-c++ clang++-3.6 "
|
2014-12-17 22:19:37 +00:00
|
|
|
|
2013-04-02 21:20:59 +00:00
|
|
|
before_install:
|
2014-10-04 11:23:23 +00:00
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./CI/before_install.linux.sh; fi
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./CI/before_install.osx.sh; fi
|
2013-04-05 22:01:44 +00:00
|
|
|
before_script:
|
2014-10-04 11:23:23 +00:00
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./CI/before_script.linux.sh; fi
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./CI/before_script.osx.sh; fi
|
2013-04-05 22:45:04 +00:00
|
|
|
script:
|
2014-10-04 11:23:23 +00:00
|
|
|
- cd ./build
|
2016-01-20 13:30:33 +00:00
|
|
|
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then ${ANALYZE}make -j3; fi
|
2015-02-15 14:02:49 +00:00
|
|
|
- if [ "$COVERITY_SCAN_BRANCH" != 1 ] && [ "${TRAVIS_OS_NAME}" = "osx" ]; then make package; fi
|
2015-11-08 00:21:59 +00:00
|
|
|
- if [ "$COVERITY_SCAN_BRANCH" != 1 ] && [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./openmw_test_suite; fi
|
|
|
|
- if [ "$COVERITY_SCAN_BRANCH" != 1 ] && [ "${TRAVIS_OS_NAME}" = "linux" ]; then cd .. && ./CI/check_tabs.sh; fi
|
2013-04-02 21:15:22 +00:00
|
|
|
notifications:
|
|
|
|
recipients:
|
2014-10-04 11:23:23 +00:00
|
|
|
- corrmage+travis-ci@gmail.com
|
2013-04-02 21:15:22 +00:00
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2014-10-21 14:12:33 +00:00
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "chat.freenode.net#openmw"
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
use_notice: true
|