summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 713f0febeb30bea9dea3f24b12066ee3d6d23c2b (plain)
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
103
# Ubuntu 18.04 Trusty support
sudo: required
dist: bionic

# Only build test master & travis
branches:
  only:
  - master
  - travis

# Enable C++ support
language: cpp

addons:
  apt:
    packages: &packages
      - libegl1-mesa-dev
      - libgles2-mesa-dev
      - libwayland-dev
      - libx11-xcb-dev
      - libx11-dev
      - libgbm-dev

# Need MYCC and MYCXX as travis overwrites CC and CXX

matrix:
  include:
    - compiler: gcc
      addons:
        apt:
          packages: [*packages, 'g++-4.8']
      env: MYCC=gcc-4.8 MYCXX=g++-4.8

    - compiler: gcc
      addons:
        apt:
          packages: [*packages, 'g++-5']
      env: MYCC=gcc-5 MYCXX=g++-5

    - compiler: gcc
      addons:
        apt:
          packages: [*packages, 'g++-6']
      env: MYCC=gcc-6 MYCXX=g++-6

    - compiler: gcc
      addons:
        apt:
          packages: [*packages, 'g++-7']
      env: MYCC=gcc-7 MYCXX=g++-7

    - compiler: gcc
      addons:
        apt:
          packages: [*packages, 'g++-8']
      env: MYCC=gcc-8 MYCXX=g++-8

    - compiler: clang
      addons:
        apt:
          packages: [*packages, 'clang-3.9']
      env: MYCC=clang-3.9 MYCXX=clang++-3.9

    - compiler: clang
      addons:
        apt:
          packages: [*packages, 'clang-4.0']
      env: MYCC=clang-4.0 MYCXX=clang++-4.0

    - compiler: clang
      addons:
        apt:
          packages: [*packages, 'clang-5.0']
      env: MYCC=clang-5.0 MYCXX=clang++-5.0

    - compiler: clang
      addons:
        apt:
          packages: [*packages, 'clang-6.0']
      env: MYCC=clang-6.0 MYCXX=clang++-6.0

    - compiler: clang
      addons:
        apt:
          packages: [*packages, 'clang-7']
      env: MYCC=clang-7 MYCXX=clang++-7

    - compiler: clang
      addons:
        apt:
          packages: [*packages, 'clang-8']
      env: MYCC=clang-8 MYCXX=clang++-8


# Build steps
script:
  - mkdir build
  - cd build
  - CC=$MYCC CXX=$MYCXX cmake -DTREAT_WARNINGS_AS_ERRORS=1 -DKMSXX_ENABLE_KMSCUBE=1 -DKMSXX_ENABLE_PYTHON=1 .. && make VERBOSE=1

notifications:
  email:
    - tomi.valkeinen@iki.fi