Move FreeBSD testing from Travis/QEMU to Cirrus-CI

Fixes #1163
This commit is contained in:
Alan Somers 2018-12-07 13:03:59 -07:00
parent f5fa41603d
commit e88e6b99de
4 changed files with 18 additions and 16 deletions

14
.cirrus.yml Normal file
View File

@ -0,0 +1,14 @@
freebsd_instance:
image: freebsd-11-1-release-amd64
task:
# This name gets reported as a build status in GitHub
name: stable x86_64-unknown-freebsd
setup_script:
- pkg install -y curl
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh -y
test_script:
- . $HOME/.cargo/env
- cd libc-test
- cargo test

View File

@ -78,9 +78,6 @@ matrix:
- env: TARGET=x86_64-unknown-linux-gnux32 OPT="--release" - env: TARGET=x86_64-unknown-linux-gnux32 OPT="--release"
rust: nightly rust: nightly
# QEMU based targets that compile in an emulator
- env: TARGET=x86_64-unknown-freebsd
- env: TARGET=wasm32-unknown-unknown - env: TARGET=wasm32-unknown-unknown
install: rustup target add $TARGET install: rustup target add $TARGET
script: cargo build --no-default-features --target $TARGET --release script: cargo build --no-default-features --target $TARGET --release

4
bors.toml Normal file
View File

@ -0,0 +1,4 @@
# Gate on both Travis CI and Cirrus-ci
status = ["continuous-integration/appveyor/branch",
"continuous-integration/travis-ci/push",
"stable x86_64-unknown-freebsd"]

View File

@ -1,13 +0,0 @@
FROM wezm/port-prebuilt-freebsd11@sha256:43553e2265ec702ec72a63a765df333f50b1858b896e69385749e96d8624e9b0
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
qemu genext2fs xz-utils
RUN apt-get install -y curl ca-certificates gcc
ENTRYPOINT ["sh"]
ENV PATH=$PATH:/rust/bin \
QEMU=2018-03-15/FreeBSD-11.1-RELEASE-amd64.qcow2.xz \
CAN_CROSS=1 \
CARGO_TARGET_X86_64_UNKNOWN_FREEBSD_LINKER=x86_64-unknown-freebsd11-gcc