summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 3e75e0f8257346ec6c81ed4a259eecd1e67c1e89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
language: cpp
sudo: false

# Use Linux by default
os: linux

matrix:
  include:
    # AppleClang
    # OSX workers are slower to start up.  Having these first in the build matrix makes travis faster overall.
    - os: osx
      compiler: clang
      env: &Release
        - TRAVIS_CUBERITE_BUILD_TYPE=RELEASE CUBERITE_PATH=./Cuberite
    - os: osx
      compiler: clang
      env: &Debug
        - TRAVIS_CUBERITE_BUILD_TYPE=DEBUG CUBERITE_PATH=./Cuberite_debug
    # Default clang
    - compiler: clang
      env: *Release
    - compiler: clang
      env: *Debug
    # clang 3.5
    - compiler: clang
      addons: &clang35
        apt:
          sources:
            - llvm-toolchain-precise-3.5
          packages:
            - clang++-3.5
            - clang-3.5
      before_install:
        - CC=clang-3.5;CXX=clang++-3.5
      env: *Release
    - compiler: clang
      addons: *clang35
      before_install:
        - CC=clang-3.5;CXX=clang++-3.5
      env: *Debug
    # gcc 4.8
    - compiler: gcc
      addons: &gcc48
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-4.8
            - gcc-4.8
      before_install:
        - CC=gcc-4.8;CXX=g++-4.8
      env: *Release
    - compiler: gcc
      addons: *gcc48
      before_install:
        - CC=gcc-4.8;CXX=g++-4.8
      env: *Debug

script: ./CIbuild.sh

notifications:
  email:
    on_success: change
    on_failure: always
branches:
  only:
    - coverity_scan
    - master