2015-01-13 16:53:42 +01:00
|
|
|
language: rust
|
2017-07-07 23:18:19 +02:00
|
|
|
rust: stable
|
2015-09-17 10:01:45 +02:00
|
|
|
sudo: required
|
2015-11-20 18:28:12 +01:00
|
|
|
dist: trusty
|
2015-09-17 10:01:45 +02:00
|
|
|
services:
|
|
|
|
- docker
|
2016-06-10 14:03:23 +02:00
|
|
|
install:
|
2017-03-23 16:09:00 +01:00
|
|
|
- if [ -z "$NO_ADD" ]; then rustup target add $TARGET; fi
|
2015-01-13 16:53:42 +01:00
|
|
|
script:
|
2016-06-10 14:03:23 +02:00
|
|
|
- cargo build
|
|
|
|
- cargo build --no-default-features
|
|
|
|
- cargo generate-lockfile --manifest-path libc-test/Cargo.toml
|
|
|
|
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
|
|
|
|
sh ci/run-docker.sh $TARGET;
|
2015-11-03 23:22:29 +01:00
|
|
|
else
|
2016-06-10 14:03:23 +02:00
|
|
|
export CARGO_TARGET_DIR=`pwd`/target;
|
|
|
|
sh ci/run.sh $TARGET;
|
2015-11-03 23:22:29 +01:00
|
|
|
fi
|
2016-06-10 14:03:23 +02:00
|
|
|
- rustc ci/style.rs && ./style src
|
2015-09-13 02:02:38 +02:00
|
|
|
env:
|
2015-09-17 09:48:36 +02:00
|
|
|
global:
|
2016-11-19 19:10:43 +01:00
|
|
|
secure: "e2/3QjgRN9atOuSHp22TrYG7QVKcYUWY48Hi9b60w+r1+BhPkTseIJLte7WefRhdXtqpjjUJTooKDhnurFOeHaCT+nmBgiv+FPU893sBl4bhesY4m0vgUJVbNZcs6lTImYekWVb+aqjGdgV/XAgCw7c3kPmrZV0MzGDWL64Xaps="
|
2015-09-17 10:01:45 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
2016-06-10 14:03:23 +02:00
|
|
|
# 1.0.0 compat
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
|
2016-06-10 14:03:23 +02:00
|
|
|
rust: 1.0.0
|
2017-10-18 21:28:48 +02:00
|
|
|
script: rm -f Cargo.lock && cargo build
|
2016-06-10 14:03:23 +02:00
|
|
|
install:
|
|
|
|
|
|
|
|
# build documentation
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
|
2016-12-02 22:33:13 +01:00
|
|
|
rust: nightly
|
2016-06-10 14:03:23 +02:00
|
|
|
script: sh ci/dox.sh
|
|
|
|
|
|
|
|
# stable compat
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
|
|
|
|
- env: TARGET=i686-unknown-linux-gnu
|
2016-06-10 14:03:23 +02:00
|
|
|
- os: osx
|
2017-03-23 16:09:00 +01:00
|
|
|
env: TARGET=x86_64-apple-darwin NO_ADD=1
|
2017-08-30 20:47:32 +02:00
|
|
|
osx_image: xcode8.3
|
2016-06-10 14:03:23 +02:00
|
|
|
- os: osx
|
|
|
|
env: TARGET=i686-apple-darwin
|
2017-08-30 20:47:32 +02:00
|
|
|
osx_image: xcode8.3
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=arm-linux-androideabi
|
|
|
|
- env: TARGET=aarch64-linux-android
|
|
|
|
- env: TARGET=i686-linux-android
|
|
|
|
- env: TARGET=x86_64-linux-android
|
|
|
|
- env: TARGET=x86_64-unknown-linux-musl
|
|
|
|
- env: TARGET=i686-unknown-linux-musl
|
|
|
|
- env: TARGET=arm-unknown-linux-gnueabihf
|
2017-10-18 21:28:48 +02:00
|
|
|
- env: TARGET=arm-unknown-linux-musleabihf
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=aarch64-unknown-linux-gnu
|
2017-10-18 21:28:48 +02:00
|
|
|
- env: TARGET=aarch64-unknown-linux-musl
|
|
|
|
rust: beta
|
2015-09-20 08:20:53 +02:00
|
|
|
- os: osx
|
2017-01-17 00:12:06 +01:00
|
|
|
osx_image: xcode8.2
|
2017-08-22 16:02:32 +02:00
|
|
|
env: TARGET=i386-apple-ios
|
|
|
|
CARGO_TARGET_I386_APPLE_IOS_RUNNER=$HOME/runtest
|
|
|
|
RUSTFLAGS=-Clink-arg=-mios-simulator-version-min=7.0
|
2017-08-22 02:06:12 +02:00
|
|
|
before_install:
|
|
|
|
rustc ./ci/ios/deploy_and_run_on_ios_simulator.rs -o $HOME/runtest
|
2015-09-20 08:20:53 +02:00
|
|
|
- os: osx
|
2017-01-17 00:12:06 +01:00
|
|
|
osx_image: xcode8.2
|
2017-08-22 16:02:32 +02:00
|
|
|
env: TARGET=x86_64-apple-ios
|
|
|
|
CARGO_TARGET_X86_64_APPLE_IOS_RUNNER=$HOME/runtest
|
|
|
|
RUSTFLAGS=-Clink-arg=-mios-simulator-version-min=7.0
|
2017-08-22 02:06:12 +02:00
|
|
|
before_install:
|
|
|
|
rustc ./ci/ios/deploy_and_run_on_ios_simulator.rs -o $HOME/runtest
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=x86_64-rumprun-netbsd
|
|
|
|
- env: TARGET=powerpc-unknown-linux-gnu
|
|
|
|
- env: TARGET=powerpc64-unknown-linux-gnu
|
|
|
|
- env: TARGET=mips-unknown-linux-musl
|
|
|
|
- env: TARGET=mipsel-unknown-linux-musl
|
|
|
|
- env: TARGET=mips64-unknown-linux-gnuabi64
|
|
|
|
- env: TARGET=mips-unknown-linux-gnu
|
|
|
|
- env: TARGET=s390x-unknown-linux-gnu
|
2017-08-27 05:39:46 +02:00
|
|
|
- env: TARGET=asmjs-unknown-emscripten
|
|
|
|
- env: TARGET=wasm32-unknown-emscripten
|
2016-06-10 14:03:23 +02:00
|
|
|
|
|
|
|
# beta
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
|
2016-06-10 14:03:23 +02:00
|
|
|
rust: beta
|
|
|
|
- os: osx
|
2017-03-23 16:09:00 +01:00
|
|
|
env: TARGET=x86_64-apple-darwin NO_ADD=1
|
2017-08-30 20:47:32 +02:00
|
|
|
osx_image: xcode8.3
|
2016-06-10 14:03:23 +02:00
|
|
|
rust: beta
|
|
|
|
|
|
|
|
# nightly
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
|
2016-12-02 22:33:13 +01:00
|
|
|
rust: nightly
|
2016-06-10 14:03:23 +02:00
|
|
|
- os: osx
|
2017-03-23 16:09:00 +01:00
|
|
|
env: TARGET=x86_64-apple-darwin NO_ADD=1
|
2017-08-30 20:47:32 +02:00
|
|
|
osx_image: xcode8.3
|
2016-12-02 22:33:13 +01:00
|
|
|
rust: nightly
|
2016-06-10 14:03:23 +02:00
|
|
|
|
|
|
|
# QEMU based targets that compile in an emulator
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=x86_64-unknown-freebsd
|
2016-06-10 14:03:23 +02:00
|
|
|
|
2015-09-13 07:03:11 +02:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|
2016-08-27 08:04:58 +02:00
|
|
|
webhooks: https://buildbot.rust-lang.org/homu/travis
|