-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.cirrus.yml
69 lines (65 loc) · 1.56 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
common_tasks_template: &COMMON_TASKS_TEMPLATE
# Location of downloaded prerequesites
gcc_deps_cache:
folder: gcc-deps
fingerprint_script: cat gcc/BASE-VER
# Typical build time is ~25 minutes, factor in twice that for waiting time
timeout_in: 120m
# Scripts to configure, build, and test
setup_script: ./buildci.sh setup
build_script: ./buildci.sh build
test_script: |
if [ "${RUN_TESTSUITE:-0}" = "1" ]
then
./buildci.sh testsuite
else
./buildci.sh unittests
fi
# Location of compressed testsuite logs
testsuite_artifacts:
path: logs/**
environment:
CIRRUS_CLONE_DEPTH: 50
# Linux
task:
name: Ubuntu $TASK_NAME_SUFFIX
container:
image: ubuntu:20.04
cpu: 8
memory: 16G
environment:
matrix:
- TASK_NAME_SUFFIX: Testsuite
RUN_TESTSUITE: 1
- TASK_NAME_SUFFIX: Unit Tests
RUN_TESTSUITE: 0
<< : *COMMON_TASKS_TEMPLATE
# FreeBSD
task:
name: FreeBSD $TASK_NAME_SUFFIX
freebsd_instance:
image_family: freebsd-12-2
cpu: 8
memory: 16G
environment:
matrix:
- TASK_NAME_SUFFIX: Testsuite
RUN_TESTSUITE: 1
- TASK_NAME_SUFFIX: Unit Tests
RUN_TESTSUITE: 0
install_bash_script: |
pkg install -y bash
ln -s /usr/local/bin/bash /bin/bash
<< : *COMMON_TASKS_TEMPLATE
# Mac
task:
name: Darwin $TASK_NAME_SUFFIX
osx_instance:
image: catalina-xcode
environment:
matrix:
- TASK_NAME_SUFFIX: Testsuite
RUN_TESTSUITE: 1
- TASK_NAME_SUFFIX: Unit Tests
RUN_TESTSUITE: 0
<< : *COMMON_TASKS_TEMPLATE