2017-05-12 11:41:26 +00:00
|
|
|
language: rust
|
2017-10-11 17:11:19 +00:00
|
|
|
cache: cargo
|
2017-06-05 09:51:05 +00:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
2017-06-12 20:05:34 +00:00
|
|
|
include:
|
2017-10-11 17:11:19 +00:00
|
|
|
# Stable channel.
|
|
|
|
- os: linux
|
|
|
|
rust: stable
|
2017-10-19 04:47:35 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
- os: linux
|
|
|
|
rust: stable
|
|
|
|
env: TARGET=x86_64-unknown-linux-musl
|
|
|
|
- os: linux
|
|
|
|
rust: stable
|
|
|
|
env: TARGET=i686-unknown-linux-gnu
|
|
|
|
- os: linux
|
|
|
|
rust: stable
|
|
|
|
env: TARGET=i686-unknown-linux-musl
|
|
|
|
- os: osx
|
|
|
|
rust: stable
|
|
|
|
env: TARGET=x86_64-apple-darwin
|
|
|
|
|
2017-10-11 17:11:19 +00:00
|
|
|
# Beta channel.
|
|
|
|
- os: linux
|
|
|
|
rust: beta
|
2017-10-19 04:47:35 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
2017-10-20 06:41:53 +00:00
|
|
|
# Disabled to reduce total CI time
|
|
|
|
# - os: linux
|
|
|
|
# rust: beta
|
|
|
|
# env: TARGET=x86_64-unknown-linux-musl
|
|
|
|
# - os: linux
|
|
|
|
# rust: beta
|
|
|
|
# env: TARGET=i686-unknown-linux-gnu
|
|
|
|
# - os: linux
|
|
|
|
# rust: beta
|
|
|
|
# env: TARGET=i686-unknown-linux-musl
|
|
|
|
# - os: osx
|
|
|
|
# rust: beta
|
|
|
|
# env: TARGET=x86_64-apple-darwin
|
2017-10-19 04:47:35 +00:00
|
|
|
|
2017-06-12 20:05:34 +00:00
|
|
|
# Nightly channel.
|
2017-10-11 17:11:19 +00:00
|
|
|
- os: linux
|
|
|
|
rust: nightly
|
2017-10-19 04:47:35 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
2017-10-20 06:41:53 +00:00
|
|
|
# Disabled to reduce total CI time
|
|
|
|
# - os: linux
|
|
|
|
# rust: nightly
|
|
|
|
# env: TARGET=x86_64-unknown-linux-musl
|
|
|
|
# - os: linux
|
|
|
|
# rust: nightly
|
|
|
|
# env: TARGET=i686-unknown-linux-gnu
|
|
|
|
# - os: linux
|
|
|
|
# rust: nightly
|
|
|
|
# env: TARGET=i686-unknown-linux-musl
|
|
|
|
# - os: osx
|
|
|
|
# rust: nightly
|
|
|
|
# env: TARGET=x86_64-apple-darwin
|
2017-10-19 04:47:35 +00:00
|
|
|
|
2017-06-12 20:05:34 +00:00
|
|
|
# Minimum Rust supported channel.
|
|
|
|
- os: linux
|
2017-10-14 17:14:18 +00:00
|
|
|
rust: 1.19.0
|
2017-06-12 20:05:34 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
- os: linux
|
2017-10-14 17:14:18 +00:00
|
|
|
rust: 1.19.0
|
2017-06-12 20:05:34 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-musl
|
2017-10-19 04:47:35 +00:00
|
|
|
- os: linux
|
|
|
|
rust: 1.19.0
|
|
|
|
env: TARGET=i686-unknown-linux-gnu
|
|
|
|
- os: linux
|
|
|
|
rust: 1.19.0
|
|
|
|
env: TARGET=i686-unknown-linux-musl
|
2017-10-07 19:30:57 +00:00
|
|
|
- os: osx
|
2017-10-14 17:14:18 +00:00
|
|
|
rust: 1.19.0
|
2017-10-07 19:30:57 +00:00
|
|
|
env: TARGET=x86_64-apple-darwin
|
2017-06-12 20:05:34 +00:00
|
|
|
|
2017-10-19 04:47:35 +00:00
|
|
|
# Code formatting check
|
|
|
|
- os: linux
|
|
|
|
rust: stable
|
|
|
|
# skip the global install step
|
2017-10-21 03:21:56 +00:00
|
|
|
install:
|
|
|
|
- which cargo-install-update || cargo install cargo-update
|
|
|
|
- cargo install-update rustfmt
|
2017-10-19 04:47:35 +00:00
|
|
|
script: cargo fmt -- --write-mode=diff
|
|
|
|
- os: linux
|
|
|
|
rust: nightly
|
|
|
|
# skip the global install step
|
2017-10-21 03:21:56 +00:00
|
|
|
install:
|
|
|
|
- which cargo-install-update || cargo install cargo-update
|
|
|
|
- cargo install-update rustfmt-nightly
|
2017-10-19 04:47:35 +00:00
|
|
|
script: cargo fmt -- --write-mode=diff
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
# needed for i686-unknown-linux-gnu target
|
|
|
|
- gcc-multilib
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# Default target on travis-ci.
|
|
|
|
# Used as conditional check in the install stage
|
|
|
|
- HOST=x86_64-unknown-linux-gnu
|
|
|
|
|
|
|
|
install:
|
|
|
|
# prevent target re-add error from rustup
|
|
|
|
- if [[ $TRAVIS_OS_NAME = linux && $HOST != $TARGET ]]; then rustup target add $TARGET; fi
|
|
|
|
|
|
|
|
script:
|
|
|
|
# Incorporate TARGET env var to the build and test process
|
|
|
|
- cargo build --target $TARGET --verbose
|
|
|
|
- cargo test --target $TARGET --verbose
|
|
|
|
|
2017-06-12 20:05:34 +00:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|