Alex Crichton | 68fe98b | 2015-01-13 07:53:42 -0800 | [diff] [blame] | 1 | language: rust |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 2 | rust: stable |
Alex Crichton | 12240ad | 2015-09-17 01:01:45 -0700 | [diff] [blame] | 3 | sudo: required |
Alex Crichton | 68a5c44 | 2015-11-20 09:28:12 -0800 | [diff] [blame] | 4 | dist: trusty |
Alex Crichton | 12240ad | 2015-09-17 01:01:45 -0700 | [diff] [blame] | 5 | services: |
| 6 | - docker |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 7 | install: |
Alex Crichton | 9a55bc1 | 2017-03-23 08:09:00 -0700 | [diff] [blame] | 8 | - if [ -z "$NO_ADD" ]; then rustup target add $TARGET; fi |
Alex Crichton | 68fe98b | 2015-01-13 07:53:42 -0800 | [diff] [blame] | 9 | script: |
Marco A L Barbosa | d1eabe6 | 2017-10-27 11:06:40 -0200 | [diff] [blame] | 10 | - cargo build $OPT |
| 11 | - cargo build $OPT --no-default-features |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 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 Crichton | 094b0d4 | 2015-11-03 14:22:29 -0800 | [diff] [blame] | 15 | else |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 16 | export CARGO_TARGET_DIR=`pwd`/target; |
| 17 | sh ci/run.sh $TARGET; |
Alex Crichton | 094b0d4 | 2015-11-03 14:22:29 -0800 | [diff] [blame] | 18 | fi |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 19 | - rustc ci/style.rs && ./style src |
Alex Crichton | 985744f | 2015-09-12 17:02:38 -0700 | [diff] [blame] | 20 | env: |
Alex Crichton | 9eca468 | 2015-09-17 00:48:36 -0700 | [diff] [blame] | 21 | global: |
Alex Crichton | c9ec4e7 | 2016-11-19 10:10:43 -0800 | [diff] [blame] | 22 | secure: "e2/3QjgRN9atOuSHp22TrYG7QVKcYUWY48Hi9b60w+r1+BhPkTseIJLte7WefRhdXtqpjjUJTooKDhnurFOeHaCT+nmBgiv+FPU893sBl4bhesY4m0vgUJVbNZcs6lTImYekWVb+aqjGdgV/XAgCw7c3kPmrZV0MzGDWL64Xaps=" |
Alex Crichton | 12240ad | 2015-09-17 01:01:45 -0700 | [diff] [blame] | 23 | matrix: |
Jason Longshore | 802bd7d | 2018-05-10 12:21:50 -0500 | [diff] [blame] | 24 | allow_failures: |
| 25 | # FIXME(#987) move back to include once 404 is fixed |
Jason Longshore | b58c25d | 2018-05-10 15:30:51 -0500 | [diff] [blame] | 26 | - env: TARGET=s390x-unknown-linux-gnu |
Alex Crichton | 12240ad | 2015-09-17 01:01:45 -0700 | [diff] [blame] | 27 | include: |
gnzlbg | 77837a0 | 2018-04-17 00:30:50 +0200 | [diff] [blame] | 28 | # 1.13.0 compat |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 29 | - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 |
gnzlbg | 77837a0 | 2018-04-17 00:30:50 +0200 | [diff] [blame] | 30 | rust: 1.13.0 |
Alex Crichton | 9029cfb | 2017-10-18 12:28:48 -0700 | [diff] [blame] | 31 | script: rm -f Cargo.lock && cargo build |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 32 | install: |
| 33 | |
| 34 | # build documentation |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 35 | - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 |
Alex Crichton | b9430b0 | 2016-12-02 13:33:13 -0800 | [diff] [blame] | 36 | rust: nightly |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 37 | script: sh ci/dox.sh |
| 38 | |
| 39 | # stable compat |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 40 | - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 |
| 41 | - env: TARGET=i686-unknown-linux-gnu |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 42 | - os: osx |
Alex Crichton | 9a55bc1 | 2017-03-23 08:09:00 -0700 | [diff] [blame] | 43 | env: TARGET=x86_64-apple-darwin NO_ADD=1 |
Joshua Liebow-Feeser | f8bfc6e | 2017-08-30 11:47:32 -0700 | [diff] [blame] | 44 | osx_image: xcode8.3 |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 45 | - os: osx |
| 46 | env: TARGET=i686-apple-darwin |
Joshua Liebow-Feeser | f8bfc6e | 2017-08-30 11:47:32 -0700 | [diff] [blame] | 47 | osx_image: xcode8.3 |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 48 | - env: TARGET=arm-linux-androideabi |
| 49 | - env: TARGET=aarch64-linux-android |
Alex Crichton | 8617317 | 2017-10-27 18:31:05 -0700 | [diff] [blame] | 50 | # FIXME(#826) should reenable |
| 51 | #- env: TARGET=i686-linux-android |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 52 | - env: TARGET=x86_64-linux-android |
| 53 | - env: TARGET=x86_64-unknown-linux-musl |
| 54 | - env: TARGET=i686-unknown-linux-musl |
| 55 | - env: TARGET=arm-unknown-linux-gnueabihf |
Alex Crichton | 9029cfb | 2017-10-18 12:28:48 -0700 | [diff] [blame] | 56 | - env: TARGET=arm-unknown-linux-musleabihf |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 57 | - env: TARGET=aarch64-unknown-linux-gnu |
Alex Crichton | 9029cfb | 2017-10-18 12:28:48 -0700 | [diff] [blame] | 58 | - env: TARGET=aarch64-unknown-linux-musl |
Alex Crichton | bea4879 | 2017-11-25 14:17:54 -0800 | [diff] [blame] | 59 | # FIXME(#856) |
| 60 | rust: 1.22.1 |
Alex Crichton | baef611 | 2015-09-19 23:20:53 -0700 | [diff] [blame] | 61 | - os: osx |
Kevin Brothaler | 4bcad05 | 2017-01-16 19:12:06 -0400 | [diff] [blame] | 62 | osx_image: xcode8.2 |
Alex Crichton | b7902df | 2017-08-22 07:02:32 -0700 | [diff] [blame] | 63 | env: TARGET=i386-apple-ios |
| 64 | CARGO_TARGET_I386_APPLE_IOS_RUNNER=$HOME/runtest |
| 65 | RUSTFLAGS=-Clink-arg=-mios-simulator-version-min=7.0 |
Alex Crichton | bcbfa85 | 2017-08-21 17:06:12 -0700 | [diff] [blame] | 66 | before_install: |
| 67 | rustc ./ci/ios/deploy_and_run_on_ios_simulator.rs -o $HOME/runtest |
Alex Crichton | baef611 | 2015-09-19 23:20:53 -0700 | [diff] [blame] | 68 | - os: osx |
Kevin Brothaler | 4bcad05 | 2017-01-16 19:12:06 -0400 | [diff] [blame] | 69 | osx_image: xcode8.2 |
Alex Crichton | b7902df | 2017-08-22 07:02:32 -0700 | [diff] [blame] | 70 | env: TARGET=x86_64-apple-ios |
| 71 | CARGO_TARGET_X86_64_APPLE_IOS_RUNNER=$HOME/runtest |
| 72 | RUSTFLAGS=-Clink-arg=-mios-simulator-version-min=7.0 |
Alex Crichton | bcbfa85 | 2017-08-21 17:06:12 -0700 | [diff] [blame] | 73 | before_install: |
| 74 | rustc ./ci/ios/deploy_and_run_on_ios_simulator.rs -o $HOME/runtest |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 75 | - env: TARGET=x86_64-rumprun-netbsd |
| 76 | - env: TARGET=powerpc-unknown-linux-gnu |
| 77 | - env: TARGET=powerpc64-unknown-linux-gnu |
Marco A L Barbosa | 3130953 | 2017-10-24 19:04:02 -0200 | [diff] [blame] | 78 | - env: TARGET=powerpc64le-unknown-linux-gnu |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 79 | - env: TARGET=mips-unknown-linux-musl |
| 80 | - env: TARGET=mipsel-unknown-linux-musl |
| 81 | - env: TARGET=mips64-unknown-linux-gnuabi64 |
Marco A L Barbosa | 56b3403 | 2017-10-27 08:21:40 -0200 | [diff] [blame] | 82 | - env: TARGET=mips64el-unknown-linux-gnuabi64 |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 83 | - env: TARGET=mips-unknown-linux-gnu |
| 84 | - env: TARGET=s390x-unknown-linux-gnu |
Jason Longshore | b58c25d | 2018-05-10 15:30:51 -0500 | [diff] [blame] | 85 | - env: TARGET=sparc64-unknown-linux-gnu |
Alex Crichton | 22b98de | 2017-08-26 20:39:46 -0700 | [diff] [blame] | 86 | - env: TARGET=asmjs-unknown-emscripten |
| 87 | - env: TARGET=wasm32-unknown-emscripten |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 88 | |
| 89 | # beta |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 90 | - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 91 | rust: beta |
| 92 | - os: osx |
Alex Crichton | 9a55bc1 | 2017-03-23 08:09:00 -0700 | [diff] [blame] | 93 | env: TARGET=x86_64-apple-darwin NO_ADD=1 |
Joshua Liebow-Feeser | f8bfc6e | 2017-08-30 11:47:32 -0700 | [diff] [blame] | 94 | osx_image: xcode8.3 |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 95 | rust: beta |
| 96 | |
| 97 | # nightly |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 98 | - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 |
Alex Crichton | b9430b0 | 2016-12-02 13:33:13 -0800 | [diff] [blame] | 99 | rust: nightly |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 100 | - os: osx |
Alex Crichton | 9a55bc1 | 2017-03-23 08:09:00 -0700 | [diff] [blame] | 101 | env: TARGET=x86_64-apple-darwin NO_ADD=1 |
Joshua Liebow-Feeser | f8bfc6e | 2017-08-30 11:47:32 -0700 | [diff] [blame] | 102 | osx_image: xcode8.3 |
Alex Crichton | b9430b0 | 2016-12-02 13:33:13 -0800 | [diff] [blame] | 103 | rust: nightly |
Marco A L Barbosa | d1eabe6 | 2017-10-27 11:06:40 -0200 | [diff] [blame] | 104 | # not available on stable |
Marco A L Barbosa | e63f46a | 2017-10-27 13:15:32 -0200 | [diff] [blame] | 105 | # without --release the build fails |
| 106 | # see https://github.com/rust-lang/rust/issues/45417 |
Marco A L Barbosa | d1eabe6 | 2017-10-27 11:06:40 -0200 | [diff] [blame] | 107 | - env: TARGET=x86_64-unknown-linux-gnux32 OPT="--release" |
| 108 | rust: nightly |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 109 | |
| 110 | # QEMU based targets that compile in an emulator |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 111 | - env: TARGET=x86_64-unknown-freebsd |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 112 | |
Alex Crichton | a3c854d | 2015-09-12 22:03:11 -0700 | [diff] [blame] | 113 | notifications: |
| 114 | email: |
| 115 | on_success: never |
Alex Crichton | 64595ef | 2016-08-26 23:04:58 -0700 | [diff] [blame] | 116 | webhooks: https://buildbot.rust-lang.org/homu/travis |