2014-07-30 18:04:48 +02:00
|
|
|
language: rust
|
2014-08-03 09:25:30 +02:00
|
|
|
|
2015-04-08 21:09:14 +02:00
|
|
|
rust:
|
|
|
|
- nightly
|
2015-05-21 19:43:24 +02:00
|
|
|
- stable
|
2015-04-08 21:09:14 +02:00
|
|
|
|
2016-09-06 09:46:31 +03:00
|
|
|
cache: cargo
|
|
|
|
|
2015-04-02 12:52:21 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libxxf86vm-dev
|
2014-12-17 10:33:49 +01:00
|
|
|
|
2016-12-13 07:37:13 -06:00
|
|
|
install:
|
|
|
|
- |
|
|
|
|
if [ $TRAVIS_OS_NAME = osx ]; then
|
2017-03-25 15:32:44 +11:00
|
|
|
rustup target add x86_64-apple-ios
|
2016-12-13 07:37:13 -06:00
|
|
|
fi
|
|
|
|
|
2014-10-04 19:17:02 +02:00
|
|
|
script:
|
|
|
|
- cargo build --verbose
|
2016-12-13 07:37:13 -06:00
|
|
|
- if [ $TRAVIS_OS_NAME = osx ]; then cargo build --target x86_64-apple-ios --verbose; fi
|
2015-05-04 07:32:02 +02:00
|
|
|
- cargo test --verbose
|
2014-09-19 20:32:30 +02:00
|
|
|
|
2014-08-03 09:25:30 +02:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
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}
|