forked from bpftrace/bpftrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (31 loc) · 1.96 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
sudo: required
language:
- cpp
services:
- docker
matrix:
include:
# Certain tests are disabled on our LLVM 5 builds because they are flaky
# when bpftrace is compiled with musl libc. They should still be capable
# of passing occasionally.
# String comparisons and args multiple tracepoints tests are the exception
# - they are just broken in debug builds.
- name: "Static LLVM 5 Debug"
env: LLVM_VERSION=5.0 BASE=alpine TYPE=Debug STATIC_LINKING=ON TEST_ARGS="--gtest_filter=codegen.*:-codegen.call_ntop_char4:codegen.call_ntop_char16:codegen.call_printf:codegen.enum_declaration:codegen.macro_definition:codegen.printf_offsets:codegen.struct_*:codegen.string_equal_comparison:codegen.string_not_equal_comparison:codegen.args_multiple_tracepoints*"
- name: "Static LLVM 5 Release"
env: LLVM_VERSION=5.0 BASE=alpine TYPE=Release STATIC_LINKING=ON TEST_ARGS="--gtest_filter=codegen.*:-codegen.call_ntop_char4:codegen.call_ntop_char16:codegen.call_printf:codegen.enum_declaration:codegen.macro_definition:codegen.printf_offsets:codegen.struct_*:codegen.args_multiple_tracepoints*"
- name: "LLVM 6 Debug"
env: LLVM_VERSION=6.0 BASE=bionic TYPE=Debug
- name: "LLVM 6 Release"
env: LLVM_VERSION=6.0 BASE=bionic TYPE=Release
- name: "LLVM 7 Debug"
env: LLVM_VERSION=7 BASE=bionic TYPE=Debug
- name: "LLVM 7 Release"
env: LLVM_VERSION=7 BASE=bionic TYPE=Release
- name: "LLVM 8 Debug"
env: LLVM_VERSION=8 BASE=bionic TYPE=Debug
- name: "LLVM 8 Release"
env: LLVM_VERSION=8 BASE=bionic TYPE=Release
script:
- docker build --build-arg LLVM_VERSION=$LLVM_VERSION -t bpftrace-builder-$BASE-llvm-$LLVM_VERSION -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-llvm-$LLVM_VERSION $(pwd)/build-$TYPE-$BASE $TYPE -j`getconf _NPROCESSORS_ONLN`