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: |
| 24 | include: |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 25 | # 1.0.0 compat |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 26 | - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 27 | rust: 1.0.0 |
Alex Crichton | 9029cfb | 2017-10-18 12:28:48 -0700 | [diff] [blame] | 28 | script: rm -f Cargo.lock && cargo build |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 29 | install: |
| 30 | |
| 31 | # build documentation |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 32 | - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 |
Alex Crichton | b9430b0 | 2016-12-02 13:33:13 -0800 | [diff] [blame] | 33 | rust: nightly |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 34 | script: sh ci/dox.sh |
| 35 | |
| 36 | # stable compat |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 37 | - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 |
| 38 | - env: TARGET=i686-unknown-linux-gnu |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 39 | - os: osx |
Alex Crichton | 9a55bc1 | 2017-03-23 08:09:00 -0700 | [diff] [blame] | 40 | env: TARGET=x86_64-apple-darwin NO_ADD=1 |
Joshua Liebow-Feeser | f8bfc6e | 2017-08-30 11:47:32 -0700 | [diff] [blame] | 41 | osx_image: xcode8.3 |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 42 | - os: osx |
| 43 | env: TARGET=i686-apple-darwin |
Joshua Liebow-Feeser | f8bfc6e | 2017-08-30 11:47:32 -0700 | [diff] [blame] | 44 | osx_image: xcode8.3 |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 45 | - 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 Crichton | 9029cfb | 2017-10-18 12:28:48 -0700 | [diff] [blame] | 52 | - env: TARGET=arm-unknown-linux-musleabihf |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 53 | - env: TARGET=aarch64-unknown-linux-gnu |
Alex Crichton | 9029cfb | 2017-10-18 12:28:48 -0700 | [diff] [blame] | 54 | - env: TARGET=aarch64-unknown-linux-musl |
| 55 | rust: beta |
Alex Crichton | baef611 | 2015-09-19 23:20:53 -0700 | [diff] [blame] | 56 | - os: osx |
Kevin Brothaler | 4bcad05 | 2017-01-16 19:12:06 -0400 | [diff] [blame] | 57 | osx_image: xcode8.2 |
Alex Crichton | b7902df | 2017-08-22 07:02:32 -0700 | [diff] [blame] | 58 | 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 Crichton | bcbfa85 | 2017-08-21 17:06:12 -0700 | [diff] [blame] | 61 | before_install: |
| 62 | 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] | 63 | - os: osx |
Kevin Brothaler | 4bcad05 | 2017-01-16 19:12:06 -0400 | [diff] [blame] | 64 | osx_image: xcode8.2 |
Alex Crichton | b7902df | 2017-08-22 07:02:32 -0700 | [diff] [blame] | 65 | 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 Crichton | bcbfa85 | 2017-08-21 17:06:12 -0700 | [diff] [blame] | 68 | before_install: |
| 69 | 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] | 70 | - 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 |
| 76 | - env: TARGET=mips-unknown-linux-gnu |
| 77 | - env: TARGET=s390x-unknown-linux-gnu |
Alex Crichton | 22b98de | 2017-08-26 20:39:46 -0700 | [diff] [blame] | 78 | - env: TARGET=asmjs-unknown-emscripten |
| 79 | - env: TARGET=wasm32-unknown-emscripten |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 80 | |
| 81 | # beta |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 82 | - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 83 | rust: beta |
| 84 | - os: osx |
Alex Crichton | 9a55bc1 | 2017-03-23 08:09:00 -0700 | [diff] [blame] | 85 | env: TARGET=x86_64-apple-darwin NO_ADD=1 |
Joshua Liebow-Feeser | f8bfc6e | 2017-08-30 11:47:32 -0700 | [diff] [blame] | 86 | osx_image: xcode8.3 |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 87 | rust: beta |
| 88 | |
| 89 | # nightly |
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 | b9430b0 | 2016-12-02 13:33:13 -0800 | [diff] [blame] | 91 | rust: nightly |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 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 | b9430b0 | 2016-12-02 13:33:13 -0800 | [diff] [blame] | 95 | rust: nightly |
Marco A L Barbosa | d1eabe6 | 2017-10-27 11:06:40 -0200 | [diff] [blame^] | 96 | # not available on stable |
| 97 | - env: TARGET=x86_64-unknown-linux-gnux32 OPT="--release" |
| 98 | rust: nightly |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 99 | |
| 100 | # QEMU based targets that compile in an emulator |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 101 | - env: TARGET=x86_64-unknown-freebsd |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 102 | |
Alex Crichton | a3c854d | 2015-09-12 22:03:11 -0700 | [diff] [blame] | 103 | notifications: |
| 104 | email: |
| 105 | on_success: never |
Alex Crichton | 64595ef | 2016-08-26 23:04:58 -0700 | [diff] [blame] | 106 | webhooks: https://buildbot.rust-lang.org/homu/travis |