.travis.yml 2.67 KB
Newer Older
1 2
os:
 - linux
3
 - osx
bret curtis's avatar
bret curtis committed
4
osx_image: xcode9.4
5
language: cpp
6 7
sudo: required
dist: trusty
8 9 10
branches:
  only:
    - master
11
    - coverity_scan
12
    - /openmw-.*$/
13 14 15 16 17 18
env:
  global:
   # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
   #   via the "travis encrypt" command using the project repo's public key
   - secure: "jybGzAdUbqt9vWR/GEnRd96BgAi/7Zd1+2HK68j/i/8+/1YH2XxLOy4Jv/DUBhBlJIkxs/Xv8dRcUlFOclZDHX1d/9Qnsqd3oUVkD7k1y7cTOWy9TBQaE/v/kZo3LpzA3xPwwthrb0BvqIbOfIELi5fS5s8ba85WFRg3AX70wWE="
addons:
19 20 21 22 23 24 25
  apt:
    sources:
      - sourceline: 'ppa:openmw/openmw'
      - ubuntu-toolchain-r-test
      - llvm-toolchain-precise-3.6
    packages: [
      # Dev
26
      cmake, clang-3.6, libunshield-dev, libtinyxml-dev,
27
      # Boost
28
      libboost-filesystem-dev, libboost-program-options-dev, libboost-system-dev,
29 30 31 32 33 34 35 36
      # FFmpeg
      libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev,
      # Audio & Video
      libsdl2-dev, libqt4-dev, libopenal-dev,
      # The other ones from OpenMW ppa
      libbullet-dev, libswresample-dev, libopenscenegraph-3.4-dev, libmygui-dev
    ]

37 38 39 40
  coverity_scan:
    project:
      name: "OpenMW/openmw"
      description: "<Your project description here>"
41 42
    notification_email: 720642+scrawl@users.noreply.github.com
    build_command_prepend: "cmake . -DBUILD_UNITTESTS=FALSE -DBUILD_OPENCS=FALSE -DBUILD_BSATOOL=FALSE -DBUILD_ESMTOOL=FALSE -DBUILD_MWINIIMPORTER=FALSE -DBUILD_LAUNCHER=FALSE"
43
    build_command:   "make -j3"
44
    branch_pattern: coverity_scan
45 46 47 48 49 50 51 52
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 "
53

54 55
before_install: ./CI/before_install.${TRAVIS_OS_NAME}.sh
before_script: ./CI/before_script.${TRAVIS_OS_NAME}.sh
56
script:
57
 - cd ./build
58
 - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then ${ANALYZE}make -j3; fi
59
 - if [ "$COVERITY_SCAN_BRANCH" != 1 ] && [ "${TRAVIS_OS_NAME}" = "osx" ]; then make package; fi
60 61
 - 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
62 63 64 65 66 67 68 69 70
 - cd "${TRAVIS_BUILD_DIR}"
deploy:
 provider: script
 script: ./CI/deploy.osx.sh
 skip_cleanup: true
 on:
  branch: master
  condition: "$TRAVIS_EVENT_TYPE = cron && $TRAVIS_OS_NAME = osx"
  repo: OpenMW/openmw
71 72
notifications:
  email:
73 74
    recipients:
      - corrmage+travis-ci@gmail.com
75 76
    on_success: change
    on_failure: always
77 78 79 80 81
  irc:
    channels:
      - "chat.freenode.net#openmw"
    on_success: change
    on_failure: always
82
    use_notice: true