-
Notifications
You must be signed in to change notification settings - Fork 9
/
.cirrus.yml
89 lines (79 loc) · 2.31 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
ubuntu_1804: &ubuntu_1804
container:
image: ubuntu:bionic
env:
UBUNTU_CODENAME: bionic
DEBIAN_FRONTEND: noninteractive
ubuntu_2004: &ubuntu_2004
container:
image: ubuntu:focal
env:
UBUNTU_CODENAME: focal
DEBIAN_FRONTEND: noninteractive
ubuntu_1804_gcc: &ubuntu_1804_gcc
<<: *ubuntu_1804
env:
CC: gcc-7
DEBIAN_FRONTEND: noninteractive
bootstrap_script:
- apt-get update
install_script:
- apt-get install -y cmake libc-dev build-essential fuse libfuse-dev mandoc python-dev python3-dev python3-pytest fio
ubuntu_1804_clang: &ubuntu_1804_clang
<<: *ubuntu_1804
env:
CC: clang
DEBIAN_FRONTEND: noninteractive
bootstrap_script:
- apt-get update
install_script:
- apt-get install -y cmake libc-dev build-essential fuse libfuse-dev mandoc python-dev python3-dev python3-pytest fio clang
ubuntu_2004_gcc: &ubuntu_2004_gcc
<<: *ubuntu_2004
env:
CC: gcc
DEBIAN_FRONTEND: noninteractive
bootstrap_script:
- apt-get update
install_script:
- apt-get install -y cmake libc-dev build-essential fuse libfuse-dev mandoc python3-pytest fio
ubuntu_2004_clang: &ubuntu_2004_clang
<<: *ubuntu_2004
env:
CC: clang-12
DEBIAN_FRONTEND: noninteractive
bootstrap_script:
- apt-get update
install_script:
- apt-get install -y cmake libc-dev build-essential fuse libfuse-dev mandoc python3-pytest fio clang-12
freebsd_14_0: &freebsd_14_0
freebsd_instance:
image_family: freebsd-14-0
env:
CC: clang
install_script:
- ASSUME_ALWAYS_YES=yes pkg bootstrap -f; pkg install -y cmake fusefs-libs pkgconf python3 py39-pip py39-pytest fio
- kldload fusefs
- kldstat
task:
matrix:
- name: "Build and test on Ubuntu 18.04 LTS with GCC 7"
<<: *ubuntu_1804_gcc
- name: "Build and test on Ubuntu 18.04 LTS with Clang 6"
<<: *ubuntu_1804_clang
- name: "Build and test on Ubuntu 20.04 with GCC 9"
<<: *ubuntu_2004_gcc
- name: "Build and test on Ubuntu 20.04 with Clang 12"
<<: *ubuntu_2004_clang
- name: "Build and test on FreeBSD 14.0"
<<: *freebsd_14_0
build_script:
- mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug ..
- make
test_script:
- make -C build pytest
always:
junit_artifacts:
path: "report.xml"
format: junit
type: text/xml