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
|
|
|
|
- 1.0.0-beta
|
|
|
|
|
2015-04-02 21:52:21 +11:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libxxf86vm-dev
|
|
|
|
- libosmesa6-dev
|
|
|
|
|
2014-12-17 20:33:49 +11:00
|
|
|
env:
|
|
|
|
global:
|
2014-12-17 20:43:29 +11:00
|
|
|
- secure: "FfubMXYXu2e7chvdfKBkc+aKPkvoBOb5Idg0KCYuD++qPFIBYg6pUE8H8WvU+V7RsEBu5vshhn3dzjkKs+LXIdo5PQUMZutAgy83g5SGxRn8Ra79GjBVBs6+XOEhFun/+7fGj2Ly/AK6BTDpqyYAhAUS7jIaF6/+JWNwPwEYfdQ="
|
2015-02-16 00:05:08 +11:00
|
|
|
- secure: "kVjHgK+6ivT5tUleNH/m6+69tPf8gkPNSPLsnXrkMJaIeXSnnKKQegP1O0UCThYAUbbwrUGlrKJUngDxkD8jSANhzAULX9t1iXho41InzYBEErTanXBYF8WO1rK1keKjLwiYw4KuvbiBoSeKabzQRwv0kMttxY57+hKVROr5dSg="
|
2014-12-17 20:33:49 +11:00
|
|
|
|
2014-10-05 04:17:02 +11:00
|
|
|
script:
|
|
|
|
- cargo build --verbose
|
2014-10-11 01:02:15 +11:00
|
|
|
- cargo test --no-run --verbose
|
2014-11-01 04:57:28 +11:00
|
|
|
- cargo test --verbose --features "headless" --no-default-features
|
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
|
|
|
|
2015-02-16 00:05:08 +11:00
|
|
|
after_success:
|
2015-02-16 01:09:52 +11:00
|
|
|
- |
|
2015-02-16 00:58:47 +11:00
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
|
|
cargo doc --features "window headless" &&
|
|
|
|
echo '<meta http-equiv=refresh content=0;url=glutin/index.html>' > target/doc/index.html &&
|
|
|
|
sudo pip install ghp-import &&
|
|
|
|
ghp-import -n target/doc &&
|
|
|
|
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
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}
|