diff options
Diffstat (limited to 'libc/.travis.yml')
-rw-r--r-- | libc/.travis.yml | 106 |
1 files changed, 52 insertions, 54 deletions
diff --git a/libc/.travis.yml b/libc/.travis.yml index 6acf0a8..da882ae 100644 --- a/libc/.travis.yml +++ b/libc/.travis.yml @@ -1,47 +1,34 @@ language: rust rust: stable sudo: required -dist: trusty -services: - - docker -install: - - if [ -z "$NO_ADD" ]; then rustup target add $TARGET; fi -script: - - cargo build $OPT - - cargo build $OPT --no-default-features - - cargo generate-lockfile --manifest-path libc-test/Cargo.toml - - if [[ $TRAVIS_OS_NAME = "linux" ]]; then - sh ci/run-docker.sh $TARGET; - else - export CARGO_TARGET_DIR=`pwd`/target; - sh ci/run.sh $TARGET; - fi - - rustc ci/style.rs && ./style src -env: - global: - secure: "e2/3QjgRN9atOuSHp22TrYG7QVKcYUWY48Hi9b60w+r1+BhPkTseIJLte7WefRhdXtqpjjUJTooKDhnurFOeHaCT+nmBgiv+FPU893sBl4bhesY4m0vgUJVbNZcs6lTImYekWVb+aqjGdgV/XAgCw7c3kPmrZV0MzGDWL64Xaps=" +dist: xenial +services: docker + matrix: include: - # 1.0.0 compat - - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 - rust: 1.0.0 + # 1.13.0 compat + - env: TARGET=x86_64-unknown-linux-gnu + rust: 1.13.0 script: rm -f Cargo.lock && cargo build - install: + install: true # build documentation - - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 + - env: TARGET=x86_64-unknown-linux-gnu rust: nightly script: sh ci/dox.sh + install: true # stable compat - - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 + - env: TARGET=x86_64-unknown-linux-gnu + install: true - env: TARGET=i686-unknown-linux-gnu - os: osx - env: TARGET=x86_64-apple-darwin NO_ADD=1 - osx_image: xcode8.3 + env: TARGET=x86_64-apple-darwin + osx_image: xcode10 + install: true - os: osx env: TARGET=i686-apple-darwin - osx_image: xcode8.3 + osx_image: xcode10 - env: TARGET=arm-linux-androideabi - env: TARGET=aarch64-linux-android # FIXME(#826) should reenable @@ -53,23 +40,6 @@ matrix: - env: TARGET=arm-unknown-linux-musleabihf - env: TARGET=aarch64-unknown-linux-gnu - env: TARGET=aarch64-unknown-linux-musl - # FIXME(#856) - rust: 1.22.1 - - os: osx - osx_image: xcode8.2 - env: TARGET=i386-apple-ios - CARGO_TARGET_I386_APPLE_IOS_RUNNER=$HOME/runtest - RUSTFLAGS=-Clink-arg=-mios-simulator-version-min=7.0 - before_install: - rustc ./ci/ios/deploy_and_run_on_ios_simulator.rs -o $HOME/runtest - - os: osx - osx_image: xcode8.2 - env: TARGET=x86_64-apple-ios - CARGO_TARGET_X86_64_APPLE_IOS_RUNNER=$HOME/runtest - RUSTFLAGS=-Clink-arg=-mios-simulator-version-min=7.0 - before_install: - rustc ./ci/ios/deploy_and_run_on_ios_simulator.rs -o $HOME/runtest - - env: TARGET=x86_64-rumprun-netbsd - env: TARGET=powerpc-unknown-linux-gnu - env: TARGET=powerpc64-unknown-linux-gnu - env: TARGET=powerpc64le-unknown-linux-gnu @@ -84,30 +54,58 @@ matrix: - env: TARGET=wasm32-unknown-emscripten # beta - - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 + - env: TARGET=x86_64-unknown-linux-gnu rust: beta + install: true - os: osx - env: TARGET=x86_64-apple-darwin NO_ADD=1 - osx_image: xcode8.3 + env: TARGET=x86_64-apple-darwin + osx_image: xcode10 rust: beta + install: true # nightly - - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 + - env: TARGET=x86_64-unknown-linux-gnu rust: nightly + install: true - os: osx - env: TARGET=x86_64-apple-darwin NO_ADD=1 - osx_image: xcode8.3 + env: TARGET=x86_64-apple-darwin + osx_image: xcode10 rust: nightly + install: true # not available on stable # without --release the build fails # see https://github.com/rust-lang/rust/issues/45417 - env: TARGET=x86_64-unknown-linux-gnux32 OPT="--release" rust: nightly - # QEMU based targets that compile in an emulator - - env: TARGET=x86_64-unknown-freebsd + - env: TARGET=wasm32-unknown-unknown + install: rustup target add $TARGET + script: cargo build --no-default-features --target $TARGET --release + + - name: "Shellcheck" + install: true + script: + - shellcheck --version + - shellcheck ci/*.sh + + allow_failures: + - env: TARGET=aarch64-linux-android + - env: TARGET=x86_64-linux-android + +install: rustup target add $TARGET +script: + - cargo generate-lockfile --manifest-path libc-test/Cargo.toml + - if [[ $TRAVIS_OS_NAME = "linux" ]]; then + sh ci/run-docker.sh $TARGET; + else + export CARGO_TARGET_DIR=`pwd`/target; + sh ci/run.sh $TARGET; + fi + - rustc ci/style.rs && ./style src +env: + global: + secure: "e2/3QjgRN9atOuSHp22TrYG7QVKcYUWY48Hi9b60w+r1+BhPkTseIJLte7WefRhdXtqpjjUJTooKDhnurFOeHaCT+nmBgiv+FPU893sBl4bhesY4m0vgUJVbNZcs6lTImYekWVb+aqjGdgV/XAgCw7c3kPmrZV0MzGDWL64Xaps=" notifications: email: on_success: never - webhooks: https://buildbot.rust-lang.org/homu/travis |