-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
executable file
·57 lines (53 loc) · 1.86 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
53
54
55
56
57
dist: trusty
sudo: required
language: c
cache: ccache
group: deprecated-2017Q4
matrix:
include:
# works on Precise and Trusty
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
env:
- MATRIX_EVAL="export PREFIX=~/.local CC=gcc-7 CXX=g++-7"
# works on Precise and Trusty
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
env:
- MATRIX_EVAL="export PREFIX=~/.local CC=gcc-6 CXX=g++-6"
before_install:
- eval "${MATRIX_EVAL}"
- sudo apt-get install -qq --fix-missing elfutils libelf-dev libreadline-dev linux-headers-generic linux-libc-dev
# Generate the header since one is missing on the Travis instance
- sudo mkdir -p /usr/include/linux
- printf "%s\n" \
"#if !defined(_LINUX_MEMFD_H)" \
"#define _LINUX_MEMFD_H" \
"" \
"#define __NR_memfd_create 319" \
"#define SYS_memfd_create __NR_memfd_create" \
"" \
"/* flags for memfd_create(2) (unsigned int) */" \
"#define MFD_CLOEXEC 0x0001U" \
"#define MFD_ALLOW_SEALING 0x0002U" \
"" \
"#endif /* _LINUX_MEMFD_H */" \
| sudo tee /usr/include/linux/memfd.h
script:
- make -B
- make clean
- make install
- make uninstall
- make dist