X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=.travis.yml;h=bdf3e8d42df9ea4b5378df6c94e2cc1394b89d2b;hb=bf22184d6e16f21b9001322aad1bf8f6dbaa372b;hp=b7f58cbe48e1af90ca31d8d2edbffcf31882e362;hpb=bcc0ca93d463ec7bdf6ff1ef621f7777014c404a;p=dragonfireclient.git diff --git a/.travis.yml b/.travis.yml index b7f58cbe4..bdf3e8d42 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,103 @@ language: cpp -compiler: - - gcc - - clang -before_install: sudo apt-get install libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev -script: cmake . && make +before_install: ./util/travis/before_install.sh +script: ./util/travis/script.sh +sudo: required +dist: trusty +group: edge notifications: email: false +matrix: + fast_finish: true + include: + + - env: CLANG_FORMAT=clang-format-7 + compiler: clang + os: linux + addons: + apt: + packages: ['clang-format-7'] + sources: &sources + - ubuntu-toolchain-r-test + - llvm-toolchain-trusty-7 + + - env: CLANG_TIDY=clang-tidy-7 + compiler: clang + os: linux + script: ./util/travis/clangtidy.sh + addons: + apt: + packages: ['clang-7', 'clang++-7', 'clang-tools-7', 'clang-tidy-7'] + sources: &sources + - ubuntu-toolchain-r-test + - llvm-toolchain-trusty-7 + + - env: PLATFORM=Win32 + compiler: gcc + os: linux + + - env: PLATFORM=Win64 + compiler: gcc + os: linux + +# - env: PLATFORM=Unix +# compiler: clang +# os: osx +# osx_image: xcode8 + + - env: PLATFORM=Unix COMPILER=gcc-6 + compiler: gcc + os: linux + addons: + apt: + packages: ['gcc-6', 'g++-6'] + sources: &sources + - ubuntu-toolchain-r-test + + - env: PLATFORM=Unix COMPILER=gcc-8 + compiler: gcc + os: linux + addons: + apt: + packages: ['gcc-8', 'g++-8'] + sources: &sources + - ubuntu-toolchain-r-test + + - env: PLATFORM=Unix COMPILER=clang-3.6 + compiler: clang + os: linux + addons: + apt: + packages: ['clang-3.6', 'clang++-3.6'] + sources: &sources + - llvm-toolchain-trusty-3.6 + + - env: PLATFORM=Unix COMPILER=clang-7 + compiler: clang + os: linux + addons: + apt: + packages: ['clang-7', 'clang++-7'] + sources: &sources + - ubuntu-toolchain-r-test + - llvm-toolchain-trusty-7 + + - env: PLATFORM=Unix COMPILER=clang-7 FREETYPE=0 + compiler: clang + os: linux + addons: + apt: + packages: ['clang-7', 'clang++-7'] + sources: &sources + - ubuntu-toolchain-r-test + - llvm-toolchain-trusty-7 + + - env: PLATFORM=Unix COMPILER=clang-7 VALGRIND=1 + compiler: clang + os: linux + addons: + apt: + packages: ['valgrind', 'clang-7', 'clang++-7'] + sources: &sources + - ubuntu-toolchain-r-test + - llvm-toolchain-trusty-7 +