-
Notifications
You must be signed in to change notification settings - Fork 35
/
.cirrus.yml
90 lines (85 loc) · 3.22 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
freebsd_task:
matrix:
- name: FreeBSD 11.4
freebsd_instance:
image: freebsd-11-4-release-amd64
- name: FreeBSD 12.2
freebsd_instance:
image: freebsd-12-2-release-amd64
env:
HOME: /home/testuser
install_script:
- sed -i.bak -e 's,pkg+http://pkg.FreeBSD.org/\${ABI}/quarterly,pkg+http://pkg.FreeBSD.org/\${ABI}/latest,' /etc/pkg/FreeBSD.conf
- pkg update -f
- pkg upgrade -y
- pkg install -y gmake cmake openssl libevent git pcre curl unzip
prepare_script:
- git submodule update --init
- curl -L https://github.com/libevent/libevent/archive/refs/tags/release-2.1.12-stable.zip -o libevent.zip
- unzip libevent.zip
- cd libevent-release-2.1.12-stable && cmake -DCMAKE_BUILD_TYPE=Release . && gmake install && cd ..
build_default_test_script:
- mkdir -p build/default
- cd build/default
- cmake ../..
- gmake
- gmake test
build_acl_test_script:
- mkdir -p build/acl
- cd build/acl
- cmake -DWITH_ACL=ON ../..
- gmake
- gmake test
linux_mbedtls_task: # use master branch of libevent to support mbedtls
container:
matrix:
- image: ubuntu:18.04
- image: ubuntu:20.04
install_script:
- apt update && apt upgrade -y
- DEBIAN_FRONTEND=noninteractive apt install -y unzip git cmake build-essential curl libssl-dev libmbedtls-dev libpcre3-dev
prepare_script:
- git submodule update --init
- curl -L https://github.com/libevent/libevent/archive/refs/heads/master.zip -o libevent.zip
- unzip libevent.zip
- cd libevent-master && cmake -DCMAKE_BUILD_TYPE=Release . && make install && cd ..
- curl -L https://github.com/ARMmbed/mbedtls/archive/refs/tags/v2.27.0.zip -o mbedtls.zip
- unzip mbedtls.zip
- cd mbedtls-2.27.0 && cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=OFF -DENABLE_PROGRAMS=OFF . && make install && cd ..
build_default_test_script:
- mkdir -p build/default
- cd build/default
- cmake -DUSE_MBEDTLS=ON ../..
- make
- make test
build_acl_test_script:
- mkdir -p build/acl
- cd build/acl
- cmake -DUSE_MBEDTLS=ON -DWITH_ACL=ON ../..
- make
- make test
linux_openssl_task:
container:
matrix:
- image: ubuntu:18.04
- image: ubuntu:20.04
install_script:
- apt update && apt upgrade -y
- DEBIAN_FRONTEND=noninteractive apt install -y unzip curl git cmake build-essential libssl-dev libpcre3-dev
prepare_script:
- git submodule update --init
- curl -L https://github.com/libevent/libevent/archive/refs/heads/master.zip -o libevent.zip
- unzip libevent.zip
- cd libevent-master && cmake -DCMAKE_BUILD_TYPE=Release -DEVENT__DISABLE_MBEDTLS=ON . && make install && cd ..
build_default_test_script:
- mkdir -p build/default
- cd build/default
- cmake ../..
- make
- make test
build_acl_test_script:
- mkdir -p build/acl
- cd build/acl
- cmake -DWITH_ACL=ON ../..
- make
- make test