language: rust
rust: stable
install:
- if [ -z "$NO_ADD" ]; then rustup target add "$TARGET"; fi
script:
- cargo build --verbose --target "$TARGET"
- if [ "$RUN" == "1" ]; then cargo test --verbose --target "$TARGET"; fi
- if [ "$RUN" == "1" ] && [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo test --verbose --target "$TARGET" --features "no_std"; fi
matrix:
include:
- env: TARGET=i686-unknown-linux-gnu RUN=1
rust: stable
addons:
apt:
packages:
- gcc-multilib
- env: TARGET=i686-unknown-linux-gnu RUN=1
rust: beta
addons:
apt:
packages:
- gcc-multilib
- env: TARGET=i686-unknown-linux-gnu RUN=1
rust: nightly
addons:
apt:
packages:
- gcc-multilib
- env: TARGET=x86_64-unknown-linux-gnu RUN=1 NO_ADD=1
rust: stable
- env: TARGET=x86_64-unknown-linux-gnu RUN=1 NO_ADD=1
rust: beta
- env: TARGET=x86_64-unknown-linux-gnu RUN=1 NO_ADD=1
rust: nightly
- env: TARGET=arm-unknown-linux-gnueabihf
rust: stable
- env: TARGET=arm-unknown-linux-gnueabihf
rust: beta
- env: TARGET=arm-unknown-linux-gnueabihf
rust: nightly
- env: TARGET=aarch64-unknown-linux-gnu
rust: stable
- env: TARGET=aarch64-unknown-linux-gnu
rust: beta
- env: TARGET=aarch64-unknown-linux-gnu
rust: nightly
- env: TARGET=mips-unknown-linux-gnu
rust: stable
- env: TARGET=mips-unknown-linux-gnu
rust: beta
- env: TARGET=mips-unknown-linux-gnu
rust: nightly
- env: TARGET=i686-unknown-linux-musl RUN=1
rust: stable
addons:
apt:
packages:
- gcc-multilib
- env: TARGET=i686-unknown-linux-musl RUN=1
rust: beta
addons:
apt:
packages:
- gcc-multilib
- env: TARGET=i686-unknown-linux-musl RUN=1
rust: nightly
addons:
apt:
packages:
- gcc-multilib
- env: TARGET=x86_64-unknown-linux-musl RUN=1
rust: stable
- env: TARGET=x86_64-unknown-linux-musl RUN=1
rust: beta
- env: TARGET=x86_64-unknown-linux-musl RUN=1
rust: nightly
- env: TARGET=aarch64-unknown-linux-musl
rust: nightly
- os: osx
env: TARGET=i686-apple-darwin RUN=1
rust: stable
- os: osx
env: TARGET=i686-apple-darwin RUN=1
rust: beta
- os: osx
env: TARGET=i686-apple-darwin RUN=1
rust: nightly
- os: osx
env: TARGET=x86_64-apple-darwin RUN=1 NO_ADD=1
rust: stable
- os: osx
env: TARGET=x86_64-apple-darwin RUN=1 NO_ADD=1
rust: beta
- os: osx
env: TARGET=x86_64-apple-darwin RUN=1 NO_ADD=1
rust: nightly
- env: TARGET=i686-linux-android
rust: stable
- env: TARGET=i686-linux-android
rust: beta
- env: TARGET=i686-linux-android
rust: nightly
- env: TARGET=x86_64-linux-android
rust: stable
- env: TARGET=x86_64-linux-android
rust: beta
- env: TARGET=x86_64-linux-android
rust: nightly
- env: TARGET=arm-linux-androideabi
rust: stable
- env: TARGET=arm-linux-androideabi
rust: beta
- env: TARGET=arm-linux-androideabi
rust: nightly
- env: TARGET=aarch64-linux-android
rust: stable
- env: TARGET=aarch64-linux-android
rust: beta
- env: TARGET=aarch64-linux-android
rust: nightly
- os: osx
osx_image: xcode9
env: TARGET=i386-apple-ios
rust: stable
- os: osx
osx_image: xcode9
env: TARGET=i386-apple-ios
rust: beta
- os: osx
osx_image: xcode9
env: TARGET=i386-apple-ios
rust: nightly
- os: osx
osx_image: xcode9
env: TARGET=x86_64-apple-ios
rust: stable
- os: osx
osx_image: xcode9
env: TARGET=x86_64-apple-ios
rust: beta
- os: osx
osx_image: xcode9
env: TARGET=x86_64-apple-ios
rust: nightly
- env: TARGET=i686-unknown-freebsd
rust: stable
- env: TARGET=i686-unknown-freebsd
rust: beta
- env: TARGET=i686-unknown-freebsd
rust: nightly
- env: TARGET=x86_64-unknown-freebsd
rust: stable
- env: TARGET=x86_64-unknown-freebsd
rust: beta
- env: TARGET=x86_64-unknown-freebsd
rust: nightly
- env: TARGET=x86_64-unknown-netbsd
rust: stable
- env: TARGET=x86_64-unknown-netbsd
rust: beta
- env: TARGET=x86_64-unknown-netbsd
rust: nightly
- env: TARGET=asmjs-unknown-emscripten
rust: stable
- env: TARGET=asmjs-unknown-emscripten
rust: beta
- env: TARGET=asmjs-unknown-emscripten
rust: nightly