summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: b311750635054705c9e7a9b0ce4dad67bef3a445 (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
# Ubuntu 20.04
dist: focal
os: linux

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

# Enable C++ support
language: cpp

addons:
  apt:
    packages: &packages
      - libdrm-dev
      - libegl1-mesa-dev
      - libgles2-mesa-dev
      - libwayland-dev
      - libx11-xcb-dev
      - libx11-dev
      - libgbm-dev
      - libevdev-dev
      - meson
      - ninja-build
      - libfmt-dev

# Need MYCC and MYCXX as travis overwrites CC and CXX

jobs:
  include:
    - 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: gcc
      addons:
        apt:
          packages: [*packages, 'g++-9']
      env: MYCC=gcc-9 MYCXX=g++-9

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

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

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

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

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

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

# Build steps
script:
  - CC=$MYCC CXX=$MYCXX meson -Dkmscube=true -Dpykms=enabled -Dwerror=true -Db_lto=true build
  - ninja -v -C build

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