2014-07-31 02:04:48 +10:00
|
|
|
language: rust
|
2014-08-03 17:25:30 +10:00
|
|
|
|
2015-04-09 05:09:14 +10:00
|
|
|
rust:
|
|
|
|
- nightly
|
2015-05-22 03:43:24 +10:00
|
|
|
- stable
|
2015-04-09 05:09:14 +10:00
|
|
|
|
2016-09-06 16:46:31 +10:00
|
|
|
cache: cargo
|
|
|
|
|
2015-04-02 21:52:21 +11:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libxxf86vm-dev
|
2014-12-17 20:33:49 +11:00
|
|
|
|
2016-12-14 00:37:13 +11:00
|
|
|
install:
|
2017-09-05 16:26:05 +10:00
|
|
|
- rustup self update
|
2016-12-14 00:37:13 +11:00
|
|
|
- |
|
|
|
|
if [ $TRAVIS_OS_NAME = osx ]; then
|
2017-03-25 15:32:44 +11:00
|
|
|
rustup target add x86_64-apple-ios
|
2016-12-14 00:37:13 +11:00
|
|
|
fi
|
|
|
|
|
2014-10-05 04:17:02 +11:00
|
|
|
script:
|
|
|
|
- cargo build --verbose
|
2016-12-14 00:37:13 +11:00
|
|
|
- if [ $TRAVIS_OS_NAME = osx ]; then cargo build --target x86_64-apple-ios --verbose; fi
|
2015-05-04 15:32:02 +10:00
|
|
|
- cargo test --verbose
|
2014-09-20 04:32:30 +10:00
|
|
|
|
2014-08-03 17:25:30 +10:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2014-12-17 20:33:49 +11:00
|
|
|
|
2016-12-14 00:28:30 +11:00
|
|
|
after_success:
|
2015-02-16 00:05:08 +11:00
|
|
|
- |
|
2015-02-16 00:58:47 +11:00
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
|
|
cargo publish --token ${CRATESIO_TOKEN}
|