forked from bpftrace/bpftrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (27 loc) · 1.17 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
sudo: required
language:
- cpp
services:
- docker
matrix:
include:
- name: "Static LLVM 5 Debug"
env: BASE=alpine TYPE=Debug STATIC_LINKING=ON TEST_ARGS="--gtest_filter=-codegen.string_equal_comparison:codegen.string_not_equal_comparison"
- name: "Static LLVM 5 Release"
env: BASE=alpine TYPE=Release STATIC_LINKING=ON
- name: "LLVM 6 Debug"
env: BASE=fedora28 TYPE=Debug
- name: "LLVM 6 Release"
env: BASE=fedora28 TYPE=Release
- name: "LLVM 7 Debug"
env: BASE=fedora29 TYPE=Debug
- name: "LLVM 7 Release"
env: BASE=fedora29 TYPE=Release
allow_failures:
- name: "Static LLVM 5 Debug"
env: BASE=alpine TYPE=Debug STATIC_LINKING=ON TEST_ARGS="--gtest_filter=-codegen.string_equal_comparison:codegen.string_not_equal_comparison"
- name: "Static LLVM 5 Release"
env: BASE=alpine TYPE=Release STATIC_LINKING=ON
script:
- docker build -t bpftrace-builder-$BASE -f docker/Dockerfile.$BASE docker/
- sudo docker run --privileged --rm -it -v $(pwd):$(pwd) -v /sys/kernel/debug:/sys/kernel/debug:rw -e STATIC_LINKING=$STATIC_LINKING -e TEST_ARGS=$TEST_ARGS bpftrace-builder-$BASE $(pwd)/build-$TYPE-$BASE $TYPE