language: rust
rust: stable
dist: trusty
sudo: false
cache: cargo
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
env:
global:
- NUM_CPUS_TEST_GET=2
matrix:
include:
- env: TARGET=i686-unknown-linux-gnu RUN=1
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
- os: osx
env: TARGET=i686-apple-darwin RUN=1
- os: osx
env: TARGET=x86_64-apple-darwin RUN=1 NO_ADD=1
- env: TARGET=i686-linux-android
- env: TARGET=x86_64-linux-android
- env: TARGET=arm-linux-androideabi
- env: TARGET=aarch64-linux-android
- os: osx
osx_image: xcode9
env: TARGET=i386-apple-ios
- os: osx
osx_image: xcode9
env: TARGET=x86_64-apple-ios
- env: TARGET=x86_64-unknown-freebsd
- env: TARGET=x86_64-unknown-netbsd
- env: TARGET=asmjs-unknown-emscripten