forked from dlang/phobos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
81 lines (76 loc) · 2.15 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
common_steps_template: &COMMON_STEPS_TEMPLATE
clone_dmd_script: |
set -uexo pipefail
git clone --branch "${CIRRUS_BASE_BRANCH:-$CIRRUS_BRANCH}" --depth 1 https://github.com/dlang/dmd.git ../dmd
install_prerequisites_script: cd ../dmd && ./ci/cirrusci.sh
install_host_compiler_script: cd ../dmd && ./ci/run.sh install_host_compiler
setup_repos_script: |
set -uexo pipefail
ln -s $CIRRUS_WORKING_DIR ../phobos
cd ../dmd && ./ci/run.sh setup_repos "${CIRRUS_BASE_BRANCH:-$CIRRUS_BRANCH}"
build_script: cd ../dmd && ./ci/run.sh build
test_dmd_script: cd ../dmd && ./ci/run.sh test_dmd
test_druntime_script: cd ../dmd && ./ci/run.sh test_druntime
test_phobos_script: cd ../dmd && ./ci/run.sh test_phobos
environment:
CIRRUS_CLONE_DEPTH: 1
# for ci/run.sh:
MODEL: 64
HOST_DMD: dmd
N: 4
OS_NAME: linux
FULL_BUILD: false
# Linux
linux_task:
name: Ubuntu 18.04 $TASK_NAME_SUFFIX
container:
image: ubuntu:18.04
cpu: 4
memory: 8G
timeout_in: 60m
environment:
matrix:
- TASK_NAME_SUFFIX: x86
MODEL: 32
- TASK_NAME_SUFFIX: x64
install_git_script: apt-get -q update && apt-get install -yq git-core
<< : *COMMON_STEPS_TEMPLATE
# Mac
macos_task:
name: macOS 12.x x64 (M1)
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
timeout_in: 60m
environment:
OS_NAME: darwin
# override Cirrus default OS (`darwin`)
OS: osx
<< : *COMMON_STEPS_TEMPLATE
# FreeBSD
freebsd13_task:
name: FreeBSD 13.0 x64
freebsd_instance:
image_family: freebsd-13-0
cpu: 4
memory: 8G
timeout_in: 60m
environment:
OS_NAME: freebsd
CI_DFLAGS: -version=TARGET_FREEBSD13
install_bash_and_git_script: pkg install -y bash git
<< : *COMMON_STEPS_TEMPLATE
freebsd12_task:
name: FreeBSD 12.3 x64
freebsd_instance:
image_family: freebsd-12-3
cpu: 4
memory: 8G
timeout_in: 60m
environment:
OS_NAME: freebsd
HOST_DMD: dmd-2.095.0
CI_DFLAGS: -version=TARGET_FREEBSD12
install_bash_and_git_script: |
sed -i '' -e 's|pkg.FreeBSD.org|mirrors.xtom.com/freebsd-pkg|' /etc/pkg/FreeBSD.conf
pkg install -y bash git
<< : *COMMON_STEPS_TEMPLATE