2015-01-13 16:53:42 +01:00
|
|
|
language: rust
|
2019-02-07 11:36:31 +01:00
|
|
|
rust: nightly
|
2015-09-17 10:01:45 +02:00
|
|
|
sudo: required
|
2018-11-24 20:53:40 +01:00
|
|
|
dist: xenial
|
2018-11-19 15:49:56 +01:00
|
|
|
services: docker
|
|
|
|
|
2019-02-07 11:36:31 +01:00
|
|
|
stages:
|
|
|
|
- tools-and-build-and-tier1
|
|
|
|
- tier2
|
|
|
|
|
2015-09-17 10:01:45 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-02-07 11:36:31 +01:00
|
|
|
# TOOLS
|
|
|
|
- name: "Documentation"
|
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
2016-06-10 14:03:23 +02:00
|
|
|
script: sh ci/dox.sh
|
2019-02-20 13:11:30 +01:00
|
|
|
install:
|
|
|
|
- travis_retry rustup component add rust-src
|
|
|
|
- travis_retry cargo install xargo
|
2019-02-07 11:36:31 +01:00
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
- name: "Shellcheck"
|
2018-11-19 15:49:56 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
script:
|
|
|
|
- shellcheck --version
|
|
|
|
- shellcheck ci/*.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
- name: "Style"
|
2019-02-18 13:50:40 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
script:
|
|
|
|
- rustc ci/style.rs && ./style src
|
2019-02-12 01:32:58 +01:00
|
|
|
# Disabled due to rust-lang/rustfmt#3341
|
2019-02-18 13:50:40 +01:00
|
|
|
#- |
|
|
|
|
# if rustup component add rustfmt-preview ; then
|
|
|
|
# cargo fmt --all -- --check
|
|
|
|
# fi
|
2019-02-07 11:36:31 +01:00
|
|
|
stage: tools-and-build-and-tier1
|
2019-02-26 16:50:59 +01:00
|
|
|
- name: "Semver Linux"
|
2019-03-01 20:34:22 +01:00
|
|
|
install: travis_retry cargo +nightly install semverver
|
2019-02-26 14:57:34 +01:00
|
|
|
script: sh ci/semver.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
2019-02-26 16:50:59 +01:00
|
|
|
- name: "Semver MacOSX"
|
2019-03-01 20:34:22 +01:00
|
|
|
install: travis_retry cargo +nightly install semverver
|
2019-02-26 14:57:34 +01:00
|
|
|
script: sh ci/semver.sh
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10
|
|
|
|
stage: tools-and-build-and-tier1
|
2019-02-07 11:36:31 +01:00
|
|
|
|
|
|
|
# BUILD stable, beta, nightly
|
|
|
|
- name: "Build Stable Rust"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: stable
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Beta Rust"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: beta
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Nightly Rust"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: nightly
|
2019-02-19 12:12:49 +01:00
|
|
|
install:
|
2019-02-20 13:01:00 +01:00
|
|
|
- travis_retry rustup component add rust-src
|
|
|
|
- travis_retry cargo install xargo
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Stable Rust"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: stable
|
|
|
|
os: osx
|
2018-10-29 15:28:19 +01:00
|
|
|
osx_image: xcode10
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Beta Rust"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: beta
|
|
|
|
os: osx
|
2018-10-29 15:28:19 +01:00
|
|
|
osx_image: xcode10
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Nightly Rust"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: nightly
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Stable Rust 1.13.0"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: 1.13.0
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Stable Rust 1.19.0"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: 1.19.0
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Stable Rust 1.24.0"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: 1.24.0
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Stable Rust 1.25.0"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: 1.25.0
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Stable Rust 1.30.0"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: 1.30.0
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Stable Rust 1.13.0"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: 1.13.0
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Stable Rust 1.19.0"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: 1.19.0
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Stable Rust 1.24.0"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: 1.24.0
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Stable Rust 1.25.0"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: 1.25.0
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- name: "Build Stable Rust 1.30.0"
|
|
|
|
script: sh ci/build.sh
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
rust: 1.30.0
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
- env: TARGET=i686-apple-darwin
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
- env: TARGET=i686-unknown-linux-gnu
|
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
- env: TARGET=x86_64-apple-darwin
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
stage: tools-and-build-and-tier1
|
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
stage: tools-and-build-and-tier1
|
2019-02-09 11:42:52 +01:00
|
|
|
install: true
|
2019-02-07 11:36:31 +01:00
|
|
|
|
|
|
|
# Tier 2 targets
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=aarch64-linux-android
|
2019-02-07 11:36:31 +01:00
|
|
|
stage: tier2
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=aarch64-unknown-linux-gnu
|
2019-02-07 11:36:31 +01:00
|
|
|
stage: tier2
|
2017-10-18 21:28:48 +02:00
|
|
|
- env: TARGET=aarch64-unknown-linux-musl
|
2019-02-07 11:36:31 +01:00
|
|
|
stage: tier2
|
|
|
|
- env: TARGET=arm-linux-androideabi
|
|
|
|
stage: tier2
|
|
|
|
- env: TARGET=arm-unknown-linux-gnueabihf
|
|
|
|
stage: tier2
|
|
|
|
- env: TARGET=arm-unknown-linux-musleabihf
|
|
|
|
stage: tier2
|
|
|
|
- env: TARGET=asmjs-unknown-emscripten
|
|
|
|
stage: tier2
|
|
|
|
- env: TARGET=i686-unknown-linux-musl
|
|
|
|
stage: tier2
|
|
|
|
- env: TARGET=mips-unknown-linux-gnu
|
|
|
|
stage: tier2
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=mips-unknown-linux-musl
|
2019-02-07 11:36:31 +01:00
|
|
|
stage: tier2
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=mips64-unknown-linux-gnuabi64
|
2019-02-07 11:36:31 +01:00
|
|
|
stage: tier2
|
2017-10-27 12:21:40 +02:00
|
|
|
- env: TARGET=mips64el-unknown-linux-gnuabi64
|
2019-02-07 11:36:31 +01:00
|
|
|
stage: tier2
|
|
|
|
- env: TARGET=mipsel-unknown-linux-musl
|
|
|
|
stage: tier2
|
|
|
|
- env: TARGET=powerpc-unknown-linux-gnu
|
|
|
|
stage: tier2
|
|
|
|
- env: TARGET=powerpc64-unknown-linux-gnu
|
|
|
|
stage: tier2
|
|
|
|
- env: TARGET=powerpc64le-unknown-linux-gnu
|
|
|
|
stage: tier2
|
2017-07-07 23:18:19 +02:00
|
|
|
- env: TARGET=s390x-unknown-linux-gnu
|
2019-02-07 11:36:31 +01:00
|
|
|
stage: tier2
|
2018-05-10 22:30:51 +02:00
|
|
|
- env: TARGET=sparc64-unknown-linux-gnu
|
2019-02-07 11:36:31 +01:00
|
|
|
stage: tier2
|
2017-08-27 05:39:46 +02:00
|
|
|
- env: TARGET=wasm32-unknown-emscripten
|
2019-02-07 11:36:31 +01:00
|
|
|
stage: tier2
|
|
|
|
- env: TARGET=x86_64-linux-android
|
|
|
|
stage: tier2
|
2017-10-27 15:06:40 +02:00
|
|
|
- env: TARGET=x86_64-unknown-linux-gnux32 OPT="--release"
|
2019-02-07 11:36:31 +01:00
|
|
|
stage: tier2
|
|
|
|
- env: TARGET=x86_64-unknown-linux-musl
|
|
|
|
stage: tier2
|
2018-11-19 15:24:41 +01:00
|
|
|
|
2019-01-21 22:04:14 +01:00
|
|
|
allow_failures:
|
2019-02-13 16:14:19 +01:00
|
|
|
# FIXME: android build bots time out irregularly
|
|
|
|
- env: TARGET=aarch64-linux-android
|
|
|
|
- env: TARGET=arm-linux-androideabi
|
2019-01-21 21:23:44 +01:00
|
|
|
# FIXME: https://github.com/rust-lang/libc/issues/1226
|
|
|
|
- env: TARGET=asmjs-unknown-emscripten
|
|
|
|
- env: TARGET=wasm32-unknown-emscripten
|
2019-02-26 16:50:59 +01:00
|
|
|
- name: "Semver Linux"
|
|
|
|
- name: "Semver MacOSX"
|
2019-01-21 21:23:44 +01:00
|
|
|
|
2019-02-09 17:54:52 +01:00
|
|
|
install: travis_retry rustup target add $TARGET
|
2019-02-07 11:36:31 +01:00
|
|
|
|
2018-11-19 15:49:56 +01:00
|
|
|
script:
|
|
|
|
- cargo generate-lockfile --manifest-path libc-test/Cargo.toml
|
2019-02-07 11:36:31 +01:00
|
|
|
- if [[ $TRAVIS_OS_NAME = "linux" ]] && [[ $BUILD_ONLY != "1" ]]; then
|
2018-11-19 15:49:56 +01:00
|
|
|
sh ci/run-docker.sh $TARGET;
|
|
|
|
else
|
|
|
|
sh ci/run.sh $TARGET;
|
|
|
|
fi
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
secure: "e2/3QjgRN9atOuSHp22TrYG7QVKcYUWY48Hi9b60w+r1+BhPkTseIJLte7WefRhdXtqpjjUJTooKDhnurFOeHaCT+nmBgiv+FPU893sBl4bhesY4m0vgUJVbNZcs6lTImYekWVb+aqjGdgV/XAgCw7c3kPmrZV0MzGDWL64Xaps="
|
|
|
|
|
2015-09-13 07:03:11 +02:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|