2014-07-30 18:04:48 +02:00
|
|
|
language: rust
|
2014-08-03 09:25:30 +02:00
|
|
|
|
2016-09-06 09:46:31 +03:00
|
|
|
cache: cargo
|
|
|
|
|
2017-10-08 14:51:55 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# Linux 32bit
|
|
|
|
- env: TARGET=i686-unknown-linux-gnu
|
|
|
|
os: linux
|
|
|
|
rust: nightly
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
# Cross compiler and cross compiled C libraries
|
|
|
|
packages: &i686_packages
|
|
|
|
- gcc-multilib
|
|
|
|
- env: TARGET=i686-unknown-linux-gnu
|
|
|
|
os: linux
|
|
|
|
rust: stable
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: *i686_packages
|
2018-06-02 22:59:59 -04:00
|
|
|
- env: TARGET=i686-unknown-linux-gnu
|
|
|
|
os: linux
|
|
|
|
rust: 1.24.1
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: *i686_packages
|
2017-10-08 14:51:55 +01:00
|
|
|
|
|
|
|
# Linux 64bit
|
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
os: linux
|
|
|
|
rust: nightly
|
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
os: linux
|
|
|
|
rust: stable
|
2018-06-02 22:59:59 -04:00
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
os: linux
|
|
|
|
rust: 1.24.1
|
2017-10-08 14:51:55 +01:00
|
|
|
|
|
|
|
# macOS
|
|
|
|
- env: TARGET=x86_64-apple-darwin
|
|
|
|
os: osx
|
|
|
|
rust: nightly
|
|
|
|
- env: TARGET=x86_64-apple-darwin
|
|
|
|
os: osx
|
|
|
|
rust: stable
|
2018-06-02 22:59:59 -04:00
|
|
|
- env: TARGET=x86_64-apple-darwin
|
|
|
|
os: osx
|
|
|
|
rust: 1.24.1
|
2017-10-08 14:51:55 +01:00
|
|
|
|
|
|
|
# iOS
|
|
|
|
- env: TARGET=x86_64-apple-ios
|
|
|
|
os: osx
|
|
|
|
rust: nightly
|
|
|
|
- env: TARGET=x86_64-apple-ios
|
|
|
|
os: osx
|
|
|
|
rust: stable
|
2018-06-02 22:59:59 -04:00
|
|
|
- env: TARGET=x86_64-apple-ios
|
|
|
|
os: osx
|
|
|
|
rust: 1.24.1
|
2017-10-08 14:51:55 +01:00
|
|
|
|
2016-12-13 07:37:13 -06:00
|
|
|
install:
|
2017-09-05 07:26:05 +01:00
|
|
|
- rustup self update
|
2017-10-08 14:51:55 +01:00
|
|
|
- rustup target add $TARGET; true
|
2016-12-13 07:37:13 -06:00
|
|
|
|
2014-10-04 19:17:02 +02:00
|
|
|
script:
|
2017-10-08 14:51:55 +01:00
|
|
|
- cargo build --target $TARGET --verbose
|
|
|
|
# Running iOS apps on OSX requires the simulator so we skip that for now
|
|
|
|
- if [ "$TARGET" != "x86_64-apple-ios" ]; then cargo test --target $TARGET --verbose; fi
|
2014-12-17 10:33:49 +01:00
|
|
|
|
2016-12-13 07:28:30 -06:00
|
|
|
after_success:
|
2015-02-15 14:05:08 +01:00
|
|
|
- |
|
2015-02-15 14:58:47 +01:00
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
|
|
cargo publish --token ${CRATESIO_TOKEN}
|