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: |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 10 | - 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 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 |
| 28 | script: cargo build |
| 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 |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 41 | - os: osx |
| 42 | env: TARGET=i686-apple-darwin |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 43 | - env: TARGET=arm-linux-androideabi |
| 44 | - env: TARGET=aarch64-linux-android |
| 45 | - env: TARGET=i686-linux-android |
| 46 | - env: TARGET=x86_64-linux-android |
| 47 | - env: TARGET=x86_64-unknown-linux-musl |
| 48 | - env: TARGET=i686-unknown-linux-musl |
| 49 | - env: TARGET=arm-unknown-linux-gnueabihf |
| 50 | - env: TARGET=aarch64-unknown-linux-gnu |
Alex Crichton | baef611 | 2015-09-19 23:20:53 -0700 | [diff] [blame] | 51 | - os: osx |
Kevin Brothaler | 4bcad05 | 2017-01-16 19:12:06 -0400 | [diff] [blame] | 52 | osx_image: xcode8.2 |
Alex Crichton | b7902df | 2017-08-22 07:02:32 -0700 | [diff] [blame] | 53 | env: TARGET=i386-apple-ios |
| 54 | CARGO_TARGET_I386_APPLE_IOS_RUNNER=$HOME/runtest |
| 55 | RUSTFLAGS=-Clink-arg=-mios-simulator-version-min=7.0 |
Alex Crichton | bcbfa85 | 2017-08-21 17:06:12 -0700 | [diff] [blame] | 56 | before_install: |
| 57 | 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] | 58 | - os: osx |
Kevin Brothaler | 4bcad05 | 2017-01-16 19:12:06 -0400 | [diff] [blame] | 59 | osx_image: xcode8.2 |
Alex Crichton | b7902df | 2017-08-22 07:02:32 -0700 | [diff] [blame] | 60 | env: TARGET=x86_64-apple-ios |
| 61 | CARGO_TARGET_X86_64_APPLE_IOS_RUNNER=$HOME/runtest |
| 62 | RUSTFLAGS=-Clink-arg=-mios-simulator-version-min=7.0 |
Alex Crichton | bcbfa85 | 2017-08-21 17:06:12 -0700 | [diff] [blame] | 63 | before_install: |
| 64 | 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] | 65 | - env: TARGET=x86_64-rumprun-netbsd |
| 66 | - env: TARGET=powerpc-unknown-linux-gnu |
| 67 | - env: TARGET=powerpc64-unknown-linux-gnu |
| 68 | - env: TARGET=mips-unknown-linux-musl |
| 69 | - env: TARGET=mipsel-unknown-linux-musl |
| 70 | - env: TARGET=mips64-unknown-linux-gnuabi64 |
| 71 | - env: TARGET=mips-unknown-linux-gnu |
| 72 | - env: TARGET=s390x-unknown-linux-gnu |
Alex Crichton | 22b98de | 2017-08-26 20:39:46 -0700 | [diff] [blame^] | 73 | - env: TARGET=asmjs-unknown-emscripten |
| 74 | - env: TARGET=wasm32-unknown-emscripten |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 75 | |
| 76 | # beta |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 77 | - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 78 | rust: beta |
| 79 | - os: osx |
Alex Crichton | 9a55bc1 | 2017-03-23 08:09:00 -0700 | [diff] [blame] | 80 | env: TARGET=x86_64-apple-darwin NO_ADD=1 |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 81 | rust: beta |
| 82 | |
| 83 | # nightly |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 84 | - env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1 |
Alex Crichton | b9430b0 | 2016-12-02 13:33:13 -0800 | [diff] [blame] | 85 | rust: nightly |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 86 | - os: osx |
Alex Crichton | 9a55bc1 | 2017-03-23 08:09:00 -0700 | [diff] [blame] | 87 | env: TARGET=x86_64-apple-darwin NO_ADD=1 |
Alex Crichton | b9430b0 | 2016-12-02 13:33:13 -0800 | [diff] [blame] | 88 | rust: nightly |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 89 | |
| 90 | # QEMU based targets that compile in an emulator |
Alex Crichton | 7d74c09 | 2017-07-07 14:18:19 -0700 | [diff] [blame] | 91 | - env: TARGET=x86_64-unknown-freebsd |
Alex Crichton | 3eb4a48 | 2016-06-10 05:03:23 -0700 | [diff] [blame] | 92 | |
Alex Crichton | c284246 | 2016-11-16 14:12:12 -0800 | [diff] [blame] | 93 | cache: cargo |
| 94 | |
Alex Crichton | a3c854d | 2015-09-12 22:03:11 -0700 | [diff] [blame] | 95 | notifications: |
| 96 | email: |
| 97 | on_success: never |
Alex Crichton | 64595ef | 2016-08-26 23:04:58 -0700 | [diff] [blame] | 98 | webhooks: https://buildbot.rust-lang.org/homu/travis |