Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more targets to CI #50

Merged
merged 18 commits into from
Jul 18, 2017
Merged
65 changes: 49 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,57 @@
language: rust
rust:
- stable
- beta
- nightly

os:
- linux
- osx

rust: stable
dist: trusty
sudo: false

cache:
apt: true
directories:
- target/debug/deps
- target/debug/build
cache: cargo

install:
- if [ -z "$NO_ADD" ]; then rustup target add "$TARGET"; fi

script:
- cargo build --verbose
- cargo test --verbose
- cargo build --verbose --target "$TARGET"
# Only run the targets if we are on the same OS.
- if [ "$RUN" == "1" ]; then cargo test --verbose --target "$TARGET"; fi

matrix:
include:
# Linux
# 32-bit requires multilib.
- env: TARGET=i686-unknown-linux-gnu RUN=1
addons:
apt:
packages:
- gcc-multilib
# 64-bit stable.
- env: TARGET=x86_64-unknown-linux-gnu RUN=1 NO_ADD=1
rust: stable
# 64-bit beta.
- env: TARGET=x86_64-unknown-linux-gnu RUN=1 NO_ADD=1
rust: beta
# 64-bit nightly.
- env: TARGET=x86_64-unknown-linux-gnu RUN=1 NO_ADD=1
rust: nightly
# Mac OS X
- os: osx
env: TARGET=i686-apple-darwin RUN=1
- os: osx
env: TARGET=x86_64-apple-darwin RUN=1 NO_ADD=1
# Android
# - for x86
- env: TARGET=i686-linux-android
- env: TARGET=x86_64-linux-android
# - for ARM
- env: TARGET=arm-linux-androideabi
- env: TARGET=aarch64-linux-android
# IOS
- os: osx
osx_image: xcode9
env: TARGET=i386-apple-ios
- os: osx
osx_image: xcode9
env: TARGET=x86_64-apple-ios
# BSD derivatives.
- env: TARGET=x86_64-unknown-freebsd

notifications:
email: false