Skip to content

Commit

Permalink
Add more targets to CI (#50)
Browse files Browse the repository at this point in the history
cc #47
  • Loading branch information
GabrielMajeri authored and seanmonstar committed Jul 18, 2017
1 parent 9f71707 commit 75904d6
Showing 1 changed file with 49 additions and 16 deletions.
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

0 comments on commit 75904d6

Please sign in to comment.