dmd/.cirrus.yml
Iain Buclaw 646d83480f dmd.mars: Add method to predefine FreeBSD_12 at compile-time.
This allows to statically set which version of FreeBSD to compile for
using DFLAGS, choices are FreeBSD 10, 11 or 12. If unset, the default is
to use the same version as the host, or fallback to version 11 if
compiling on a different host, or using an old D compiler to build DMD.

To be decided is whether there should be a dynamic way of detecting the
FreeBSD OS version as well, such as by using getosreldate().
2020-11-20 00:36:08 +01:00

90 lines
2.2 KiB
YAML

common_steps_template: &COMMON_STEPS_TEMPLATE
install_prerequisites_script: ./cirrusci.sh
install_host_compiler_script: ./ci.sh install_host_compiler
setup_repos_script: |
set -uexo pipefail
ln -s $CIRRUS_WORKING_DIR ../dmd
./ci.sh setup_repos "${CIRRUS_BASE_BRANCH:-$CIRRUS_BRANCH}"
build_script: ./ci.sh build
test_dmd_script: ./ci.sh test_dmd
test_druntime_script: ./ci.sh test_druntime
test_phobos_script: ./ci.sh test_phobos
environment:
CIRRUS_CLONE_DEPTH: 50
# for ci.sh:
MODEL: 64
HOST_DC: dmd
N: 4
OS_NAME: linux
FULL_BUILD: true
# Linux
task:
name: Ubuntu 16.04 $TASK_NAME_SUFFIX
container:
image: ubuntu:16.04
cpu: 4
memory: 8G
timeout_in: 60m
environment:
matrix:
- TASK_NAME_SUFFIX: x86, DMD (latest)
MODEL: 32
- TASK_NAME_SUFFIX: x86, DMD (bootstrap)
MODEL: 32
HOST_DC: dmd-2.079.0
- TASK_NAME_SUFFIX: x64, DMD (latest)
- TASK_NAME_SUFFIX: x64, DMD (bootstrap)
HOST_DC: dmd-2.079.0
- TASK_NAME_SUFFIX: x64, LDC
HOST_DC: ldc
- TASK_NAME_SUFFIX: x64, GDC
HOST_DC: gdmd-9
<< : *COMMON_STEPS_TEMPLATE
# Mac
task:
name: macOS 10.15 x64, $TASK_NAME_SUFFIX
osx_instance:
image: catalina-xcode
timeout_in: 60m
environment:
OS_NAME: darwin
# override Cirrus default OS (`darwin`)
OS: osx
matrix:
- TASK_NAME_SUFFIX: DMD (latest)
- TASK_NAME_SUFFIX: DMD (bootstrap)
# de-facto bootstrap version on OSX
# See: https://forum.dlang.org/post/qfsgt2$1goc$1@digitalmars.com
HOST_DC: dmd-2.088.0
<< : *COMMON_STEPS_TEMPLATE
# FreeBSD
task:
name: FreeBSD 12.1 x64, DMD (latest)
freebsd_instance:
image_family: freebsd-12-1
cpu: 4
memory: 8G
timeout_in: 60m
environment:
OS_NAME: freebsd
CI_DFLAGS: -version=TARGET_FREEBSD12
install_bash_script: pkg install -y bash
<< : *COMMON_STEPS_TEMPLATE
task:
name: FreeBSD 11.4 x64, DMD (bootstrap)
freebsd_instance:
image_family: freebsd-11-4
cpu: 4
memory: 8G
timeout_in: 60m
environment:
OS_NAME: freebsd
HOST_DC: dmd-2.079.0
CI_DFLAGS: -version=TARGET_FREEBSD11
install_bash_script: pkg install -y bash
<< : *COMMON_STEPS_TEMPLATE