-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
.cirrus.yml
58 lines (54 loc) · 1.45 KB
/
.cirrus.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
58
style_task:
name: Style (clang-format)
container:
dockerfile: .ci/debian/Dockerfile
cpu: 1
memory: 1G
clang-format_script:
- git diff -U0 --no-color $(git merge-base origin/master HEAD) | scripts/clang-format-diff.py -p1;
.build_template: &build_definition
depends_on:
- style
env:
PREFIX: /opt/tenzir
submodule_script:
- git submodule update --init aux/caf
- git submodule update --init aux/broker/broker
- git -C aux/broker/broker submodule update --init 3rdparty
build_script:
- ./configure --prefix=$PREFIX --build-type=$BUILD_TYPE $CONFIGURE_FLAGS --generator=Ninja
- cmake --build build --target all
unit_test_script:
- cmake --build build --target test
integration_test_script:
- cmake --build build --target integration
install_script:
- cmake --build build --target install
debian_task:
name: Debian
container:
dockerfile: .ci/debian/Dockerfile
cpu: 8
memory: 24G
env:
CC: gcc-8
CXX: g++-8
matrix:
- BUILD_TYPE: Release
- BUILD_TYPE: Debug
CONFIGURE_FLAGS: --enable-asan
<<: *build_definition
freebsd_task:
name: FreeBSD
freebsd_instance:
image: freebsd-12-0-release-amd64
cpu: 8
memory: 24G
env:
matrix:
- BUILD_TYPE: Release
- BUILD_TYPE: Debug
CONFIGURE_FLAGS: --enable-asan
setup_script:
- env ASSUME_ALWAYS_YES=YES pkg install git cmake ninja lang/python3 lang/python py36-pip
<<: *build_definition