-
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
49 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |