~zbigniew-chyla/widelands/use-sdl-color-cursor

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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
language: cpp
script: bash -e .travis.sh
sudo: required
dist: trusty

before_script:
  - export DISPLAY=:99.0
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )& fi
  - sleep 3 # give xvfb some time to start

# ignore this branch because it is only a mirror of master
branches:
  except:
    - _widelands_dev_widelands_trunk

# Let travis add additional repos and install packages for us (https://docs.travis-ci.com/user/migrating-from-legacy/#Adding-APT-Sources)
addons:
  apt:
    # The aliases used are based on a whitelist, see https://github.com/travis-ci/apt-source-whitelist for details. 
    # Clang 3.4 and 3.5 are too old (presumably) to have gotten official aliases
    sources:
      - ubuntu-toolchain-r-test
      - sourceline: "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.4 main"
        key_url: "http://apt.llvm.org/llvm-snapshot.gpg.key"
      - sourceline: "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.5 main"
        key_url: "http://apt.llvm.org/llvm-snapshot.gpg.key"
      - llvm-toolchain-trusty-5.0
      - llvm-toolchain-trusty-6.0
    packages:
      - cmake
      - libboost-dev
      - libboost-regex-dev
      - libboost-system-dev
      - libboost-test-dev
      - libglew-dev
      - libicu-dev
      - libpng-dev
      - libsdl2-dev
      - libsdl2-image-dev
      - libsdl2-mixer-dev
      - libsdl2-ttf-dev
      - python-pip
      - zlib1g-dev

matrix:
  include:
    ### MAC OSX BUILDS
    - os: osx
      env: BUILD_TYPE="Debug"
    - os: osx
      env: BUILD_TYPE="Release"
    ### LINUX + CLANG BUILDS
    - os: linux
      compiler: clang
      env: CLANG_VERSION="3.4" BUILD_TYPE="Debug"
    - os: linux
      compiler: clang
      env: CLANG_VERSION="3.5" BUILD_TYPE="Debug"
    - os: linux
      compiler: clang
      env: CLANG_VERSION="5.0" BUILD_TYPE="Debug"
    - os: linux
      compiler: clang
      env: CLANG_VERSION="6.0" BUILD_TYPE="Debug"
    - os: linux
      compiler: clang
      env: CLANG_VERSION="3.4" BUILD_TYPE="Release"
    - os: linux
      compiler: clang
      env: CLANG_VERSION="3.5" BUILD_TYPE="Release"
    - os: linux
      compiler: clang
      env: CLANG_VERSION="5.0" BUILD_TYPE="Release"
    - os: linux
      compiler: clang
      env: CLANG_VERSION="6.0" BUILD_TYPE="Release"
    ### LINUX + GCC BUILDS
    - os: linux
      compiler: gcc
      env: GCC_VERSION="4.8" BUILD_TYPE="Debug"
    - os: linux
      compiler: gcc
      env: GCC_VERSION="4.9" BUILD_TYPE="Debug"
    - os: linux
      compiler: gcc
      env: GCC_VERSION="7" BUILD_TYPE="Debug"
    - os: linux
      compiler: gcc
      env: GCC_VERSION="8" BUILD_TYPE="Debug"
    - os: linux
      compiler: gcc
      env: GCC_VERSION="4.8" BUILD_TYPE="Release"
    - os: linux
      compiler: gcc
      env: GCC_VERSION="4.9" BUILD_TYPE="Release"
    - os: linux
      compiler: gcc
      env: GCC_VERSION="7" BUILD_TYPE="Release"
    - os: linux
      compiler: gcc
      env: GCC_VERSION="8" BUILD_TYPE="Release"