summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 30926b5bdb4f3193e2297074c1f8414755e40847 (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
language: cpp
compiler:
  - gcc
  - clang

before_install:
  - if [ "$TRAVIS_MCSERVER_BUILD_TYPE" == "COVERAGE" ]; then sudo pip install cpp_coveralls; fi

  # g++4.8
  - if [ "$CXX" == "g++"]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
  - if [ "$CXX" == "g++"]; then sudo apt-get update -qq; fi

install:
  # g++4.8
  - if [ "$CXX" == "g++"]; then sudo apt-get install -qq g++-4.8; fi
  - if [ "$CXX" == "g++"]; then export CXX="g++-4.8"; fi
  - if [ "$CXX" == "g++"]; then export CC="gcc-4.8"; fi

# Build MCServer
script: ./CIbuild.sh

after_success:
  - ./uploadCoverage.sh

env:
  - TRAVIS_MCSERVER_BUILD_TYPE=RELEASE MCSERVER_PATH=./MCServer
  - TRAVIS_MCSERVER_BUILD_TYPE=DEBUG   MCSERVER_PATH=./MCServer_debug
  - TRAVIS_MCSERVER_BUILD_TYPE=RELEASE TRAVIS_MCSERVER_FORCE32=1 MCSERVER_PATH=./MCServer
  - TRAVIS_MCSERVER_BUILD_TYPE=DEBUG   TRAVIS_MCSERVER_FORCE32=1 MCSERVER_PATH=./MCServer_debug

matrix:
  include:
    - compiler: gcc
      env: TRAVIS_MCSERVER_BUILD_TYPE=COVERAGE   MCSERVER_PATH=./MCServer

# Notification Settings
notifications:
  email:
    on_success: change
    on_failure: always