summaryrefslogtreecommitdiff
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-05-16 14:53:51 +0200
committergnzlbg <gonzalobg88@gmail.com>2019-05-24 20:04:17 +0200
commit7437d0a6f18625b90a9d2fc40f3ecbc98a2e95fc (patch)
treec2a8655e7d01d6ff20f64325d4cdd2d7309edde0 /.cirrus.yml
parent5653a6014f18dbc2594ba756e40bb5e2f69866f7 (diff)
downloadrust-libc-7437d0a6f18625b90a9d2fc40f3ecbc98a2e95fc.tar.gz
Add a FreeBSD 12 build job and test FreeBSD12 APIs
This commits adds a second FreeBSD 12 build job, and splits the implementation of the FreeBSD module into two modules, one for FreeBSD 11, and one for FreeBSD 12. The FreeBSD 11 module is compiled always by default, and is mostly forward compatible with FreeBSD 12 systems. The FreeBSD 12 module is only built for now in libc's CI, and uses FreeBSD 12 data types and APIs, linking to symbols that are only available in FreeBSD 12. Basically, when LIBC_CI env variable is defined, and the host system is a FreeBSD 12 system, then the FreeBSD 12 module is automatically built and tested. Conditional compilation is done using a `cfg(freebsd12)` flag. This commit also re-enables many tests, and documents why some remain disabled.
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml15
1 files changed, 8 insertions, 7 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 93c16df377..47807ab0a7 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -1,8 +1,7 @@
-freebsd_instance:
- image: freebsd-11-1-release-amd64
-
task:
- name: stable x86_64-unknown-freebsd
+ name: stable x86_64-unknown-freebsd-11
+ freebsd_instance:
+ image: freebsd-11-2-release-amd64
setup_script:
- pkg install -y curl
- curl https://sh.rustup.rs -sSf --output rustup.sh
@@ -12,13 +11,15 @@ task:
test_script:
- . $HOME/.cargo/env
- sh ci/run.sh x86_64-unknown-freebsd
-
+
task:
- name: nightly x86_64-unknown-freebsd
+ name: nightly x86_64-unknown-freebsd-12
+ freebsd_instance:
+ image: freebsd-12-0-release-amd64
setup_script:
- pkg install -y curl
- curl https://sh.rustup.rs -sSf --output rustup.sh
- - sh rustup.sh -y
+ - sh rustup.sh --default-toolchain nightly -y
- . $HOME/.cargo/env
- rustup default nightly
test_script: