forked from aengelke/rellume
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (48 loc) · 1.15 KB
/
.travis.yml
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
language: cpp
dist: bionic
addons:
apt:
packages: &default_pkgs
- libglib2.0-dev
- python3-pip
- python3-setuptools
# - libstdc++6-4.9-dbg
- ninja-build
matrix:
include:
- compiler: gcc
env:
- COMPILERC=gcc-7
- COMPILERCXX=g++-7
- LLVM_CONFIG=llvm-config-8
addons:
apt:
packages:
- *default_pkgs
- llvm-8-dev
- gcc-7
- g++-7
- compiler: clang
env:
- COMPILERC=clang-8
- COMPILERCXX=clang++-8
- LLVM_CONFIG=llvm-config-8
addons:
apt:
packages:
- *default_pkgs
- llvm-8-dev
- clang-8
install:
# The meson included in the Xenial repositories is too old (0.29).
- pip3 install meson
# Hack to work around different versions of LLVM being installed and meson
# always choosing the newest one, regardless of our specifications.
- ln -s /usr/bin/$LLVM_CONFIG $HOME/.local/bin/llvm-config
- export CC=$COMPILERC
- export CXX=$COMPILERCXX
script:
- mkdir build
- meson build
- ninja -v -C build
- meson test -v -C build