blob: 421f2b302daa7549eddef33035dd35fbd9b31bd8 [file] [log] [blame]
Alex Crichton68fe98b2015-01-13 07:53:42 -08001language: rust
Alex Crichton7d74c092017-07-07 14:18:19 -07002rust: stable
Alex Crichton12240ad2015-09-17 01:01:45 -07003sudo: required
Alex Crichton68a5c442015-11-20 09:28:12 -08004dist: trusty
Alex Crichton12240ad2015-09-17 01:01:45 -07005services:
6 - docker
Alex Crichton3eb4a482016-06-10 05:03:23 -07007install:
Alex Crichton9a55bc12017-03-23 08:09:00 -07008 - if [ -z "$NO_ADD" ]; then rustup target add $TARGET; fi
Alex Crichton68fe98b2015-01-13 07:53:42 -08009script:
Alex Crichton3eb4a482016-06-10 05:03:23 -070010 - cargo build
11 - cargo build --no-default-features
12 - cargo generate-lockfile --manifest-path libc-test/Cargo.toml
13 - if [[ $TRAVIS_OS_NAME = "linux" ]]; then
14 sh ci/run-docker.sh $TARGET;
Alex Crichton094b0d42015-11-03 14:22:29 -080015 else
Alex Crichton3eb4a482016-06-10 05:03:23 -070016 export CARGO_TARGET_DIR=`pwd`/target;
17 sh ci/run.sh $TARGET;
Alex Crichton094b0d42015-11-03 14:22:29 -080018 fi
Alex Crichton3eb4a482016-06-10 05:03:23 -070019 - rustc ci/style.rs && ./style src
Alex Crichton985744f2015-09-12 17:02:38 -070020env:
Alex Crichton9eca4682015-09-17 00:48:36 -070021 global:
Alex Crichtonc9ec4e72016-11-19 10:10:43 -080022 secure: "e2/3QjgRN9atOuSHp22TrYG7QVKcYUWY48Hi9b60w+r1+BhPkTseIJLte7WefRhdXtqpjjUJTooKDhnurFOeHaCT+nmBgiv+FPU893sBl4bhesY4m0vgUJVbNZcs6lTImYekWVb+aqjGdgV/XAgCw7c3kPmrZV0MzGDWL64Xaps="
Alex Crichton12240ad2015-09-17 01:01:45 -070023matrix:
24 include:
Alex Crichton3eb4a482016-06-10 05:03:23 -070025 # 1.0.0 compat
Alex Crichton7d74c092017-07-07 14:18:19 -070026 - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
Alex Crichton3eb4a482016-06-10 05:03:23 -070027 rust: 1.0.0
Alex Crichton9029cfb2017-10-18 12:28:48 -070028 script: rm -f Cargo.lock && cargo build
Alex Crichton3eb4a482016-06-10 05:03:23 -070029 install:
30
31 # build documentation
Alex Crichton7d74c092017-07-07 14:18:19 -070032 - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
Alex Crichtonb9430b02016-12-02 13:33:13 -080033 rust: nightly
Alex Crichton3eb4a482016-06-10 05:03:23 -070034 script: sh ci/dox.sh
35
36 # stable compat
Alex Crichton7d74c092017-07-07 14:18:19 -070037 - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
38 - env: TARGET=i686-unknown-linux-gnu
Alex Crichton3eb4a482016-06-10 05:03:23 -070039 - os: osx
Alex Crichton9a55bc12017-03-23 08:09:00 -070040 env: TARGET=x86_64-apple-darwin NO_ADD=1
Joshua Liebow-Feeserf8bfc6e2017-08-30 11:47:32 -070041 osx_image: xcode8.3
Alex Crichton3eb4a482016-06-10 05:03:23 -070042 - os: osx
43 env: TARGET=i686-apple-darwin
Joshua Liebow-Feeserf8bfc6e2017-08-30 11:47:32 -070044 osx_image: xcode8.3
Alex Crichton7d74c092017-07-07 14:18:19 -070045 - env: TARGET=arm-linux-androideabi
46 - env: TARGET=aarch64-linux-android
47 - env: TARGET=i686-linux-android
48 - env: TARGET=x86_64-linux-android
49 - env: TARGET=x86_64-unknown-linux-musl
50 - env: TARGET=i686-unknown-linux-musl
51 - env: TARGET=arm-unknown-linux-gnueabihf
Alex Crichton9029cfb2017-10-18 12:28:48 -070052 - env: TARGET=arm-unknown-linux-musleabihf
Alex Crichton7d74c092017-07-07 14:18:19 -070053 - env: TARGET=aarch64-unknown-linux-gnu
Alex Crichton9029cfb2017-10-18 12:28:48 -070054 - env: TARGET=aarch64-unknown-linux-musl
55 rust: beta
Alex Crichtonbaef6112015-09-19 23:20:53 -070056 - os: osx
Kevin Brothaler4bcad052017-01-16 19:12:06 -040057 osx_image: xcode8.2
Alex Crichtonb7902df2017-08-22 07:02:32 -070058 env: TARGET=i386-apple-ios
59 CARGO_TARGET_I386_APPLE_IOS_RUNNER=$HOME/runtest
60 RUSTFLAGS=-Clink-arg=-mios-simulator-version-min=7.0
Alex Crichtonbcbfa852017-08-21 17:06:12 -070061 before_install:
62 rustc ./ci/ios/deploy_and_run_on_ios_simulator.rs -o $HOME/runtest
Alex Crichtonbaef6112015-09-19 23:20:53 -070063 - os: osx
Kevin Brothaler4bcad052017-01-16 19:12:06 -040064 osx_image: xcode8.2
Alex Crichtonb7902df2017-08-22 07:02:32 -070065 env: TARGET=x86_64-apple-ios
66 CARGO_TARGET_X86_64_APPLE_IOS_RUNNER=$HOME/runtest
67 RUSTFLAGS=-Clink-arg=-mios-simulator-version-min=7.0
Alex Crichtonbcbfa852017-08-21 17:06:12 -070068 before_install:
69 rustc ./ci/ios/deploy_and_run_on_ios_simulator.rs -o $HOME/runtest
Alex Crichton7d74c092017-07-07 14:18:19 -070070 - env: TARGET=x86_64-rumprun-netbsd
71 - env: TARGET=powerpc-unknown-linux-gnu
72 - env: TARGET=powerpc64-unknown-linux-gnu
73 - env: TARGET=mips-unknown-linux-musl
74 - env: TARGET=mipsel-unknown-linux-musl
75 - env: TARGET=mips64-unknown-linux-gnuabi64
Marco A L Barbosa56b34032017-10-27 08:21:40 -020076 - env: TARGET=mips64el-unknown-linux-gnuabi64
Alex Crichton7d74c092017-07-07 14:18:19 -070077 - env: TARGET=mips-unknown-linux-gnu
78 - env: TARGET=s390x-unknown-linux-gnu
Alex Crichton22b98de2017-08-26 20:39:46 -070079 - env: TARGET=asmjs-unknown-emscripten
80 - env: TARGET=wasm32-unknown-emscripten
Alex Crichton3eb4a482016-06-10 05:03:23 -070081
82 # beta
Alex Crichton7d74c092017-07-07 14:18:19 -070083 - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
Alex Crichton3eb4a482016-06-10 05:03:23 -070084 rust: beta
85 - os: osx
Alex Crichton9a55bc12017-03-23 08:09:00 -070086 env: TARGET=x86_64-apple-darwin NO_ADD=1
Joshua Liebow-Feeserf8bfc6e2017-08-30 11:47:32 -070087 osx_image: xcode8.3
Alex Crichton3eb4a482016-06-10 05:03:23 -070088 rust: beta
89
90 # nightly
Alex Crichton7d74c092017-07-07 14:18:19 -070091 - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
Alex Crichtonb9430b02016-12-02 13:33:13 -080092 rust: nightly
Alex Crichton3eb4a482016-06-10 05:03:23 -070093 - os: osx
Alex Crichton9a55bc12017-03-23 08:09:00 -070094 env: TARGET=x86_64-apple-darwin NO_ADD=1
Joshua Liebow-Feeserf8bfc6e2017-08-30 11:47:32 -070095 osx_image: xcode8.3
Alex Crichtonb9430b02016-12-02 13:33:13 -080096 rust: nightly
Alex Crichton3eb4a482016-06-10 05:03:23 -070097
98 # QEMU based targets that compile in an emulator
Alex Crichton7d74c092017-07-07 14:18:19 -070099 - env: TARGET=x86_64-unknown-freebsd
Alex Crichton3eb4a482016-06-10 05:03:23 -0700100
Alex Crichtona3c854d2015-09-12 22:03:11 -0700101notifications:
102 email:
103 on_success: never
Alex Crichton64595ef2016-08-26 23:04:58 -0700104 webhooks: https://buildbot.rust-lang.org/homu/travis