Skip to content

Commit

Permalink
Add build-only jobs for targets where libc-test does not run.
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed Jan 29, 2019
1 parent 79d77f8 commit 620b478
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ matrix:
- env: TARGET=asmjs-unknown-emscripten
- env: TARGET=wasm32-unknown-emscripten
- env: TARGET=wasm32-unknown-unknown BUILD_ONLY=1
- env: TARGET=x86_64-unknown-freebsd BUILD_ONLY=1
- env: TARGET=x86_64-unknown-openbsd BUILD_ONLY=1
- env: TARGET=x86_64-unknown-bitrig BUILD_ONLY=1
- env: TARGET=x86_64-unknown-netbsd BUILD_ONLY=1
- env: TARGET=x86_64-unknown-dragonfly BUILD_ONLY=1
- env: TARGET=x86_64-unknown-solaris BUILD_ONLY=1

allow_failures:
# FIXME: https://github.com/rust-lang/libc/issues/1226
Expand All @@ -74,7 +80,11 @@ install:
script:
- cargo generate-lockfile --manifest-path libc-test/Cargo.toml
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
sh ci/run-docker.sh $TARGET;
if [[ $BUILD_ONLY = "1" ]]; then
sh ci/run.sh $TARGET;
else
sh ci/run-docker.sh $TARGET;
fi
else
export CARGO_TARGET_DIR=`pwd`/target;
sh ci/run.sh $TARGET;
Expand Down
1 change: 0 additions & 1 deletion ci/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ run() {
--volume "$(pwd)":/checkout:ro \
--volume "$(pwd)"/target:/checkout/target \
--env CARGO_TARGET_DIR=/checkout/target \
--env BUILD_ONLY="$BUILD_ONLY" \
--workdir /checkout \
libc \
ci/run.sh "${1}"
Expand Down

0 comments on commit 620b478

Please sign in to comment.