• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Ubuntu 20.04
2dist: focal
3os: linux
4
5# Only build test master & travis
6branches:
7  only:
8  - master
9  - travis
10
11# Enable C++ support
12language: cpp
13
14addons:
15  apt:
16    packages: &packages
17      - libdrm-dev
18      - libegl1-mesa-dev
19      - libgles2-mesa-dev
20      - libwayland-dev
21      - libx11-xcb-dev
22      - libx11-dev
23      - libgbm-dev
24      - libevdev-dev
25      - meson
26      - ninja-build
27      - libfmt-dev
28
29# Need MYCC and MYCXX as travis overwrites CC and CXX
30
31jobs:
32  include:
33    - compiler: gcc
34      addons:
35        apt:
36          packages: [*packages, 'g++-7']
37      env: MYCC=gcc-7 MYCXX=g++-7
38
39    - compiler: gcc
40      addons:
41        apt:
42          packages: [*packages, 'g++-8']
43      env: MYCC=gcc-8 MYCXX=g++-8
44
45    - compiler: gcc
46      addons:
47        apt:
48          packages: [*packages, 'g++-9']
49      env: MYCC=gcc-9 MYCXX=g++-9
50
51    - compiler: gcc
52      addons:
53        apt:
54          packages: [*packages, 'g++-10']
55      env: MYCC=gcc-10 MYCXX=g++-10
56
57    - compiler: clang
58      addons:
59        apt:
60          packages: [*packages, 'clang-6.0', 'llvm-6.0-dev']
61      env: MYCC=clang-6.0 MYCXX=clang++-6.0
62
63    - compiler: clang
64      addons:
65        apt:
66          packages: [*packages, 'clang-7', 'llvm-7-dev']
67      env: MYCC=clang-7 MYCXX=clang++-7
68
69    - compiler: clang
70      addons:
71        apt:
72          packages: [*packages, 'clang-8', 'llvm-8-dev']
73      env: MYCC=clang-8 MYCXX=clang++-8
74
75    - compiler: clang
76      addons:
77        apt:
78          packages: [*packages, 'clang-9', 'llvm-9-dev']
79      env: MYCC=clang-9 MYCXX=clang++-9
80
81    - compiler: clang
82      addons:
83        apt:
84          packages: [*packages, 'clang-10', 'llvm-10-dev']
85      env: MYCC=clang-10 MYCXX=clang++-10
86
87# Build steps
88script:
89  - CC=$MYCC CXX=$MYCXX meson -Dkmscube=true -Dpykms=enabled -Dwerror=true -Db_lto=true build
90  - ninja -v -C build
91
92notifications:
93  email:
94    - tomi.valkeinen@iki.fi
95