2014-07-30 18:04:48 +02:00
|
|
|
language: rust
|
2014-08-03 09:25:30 +02:00
|
|
|
|
2014-12-17 10:33:49 +01:00
|
|
|
env:
|
|
|
|
global:
|
2014-12-17 10:43:29 +01:00
|
|
|
- secure: "FfubMXYXu2e7chvdfKBkc+aKPkvoBOb5Idg0KCYuD++qPFIBYg6pUE8H8WvU+V7RsEBu5vshhn3dzjkKs+LXIdo5PQUMZutAgy83g5SGxRn8Ra79GjBVBs6+XOEhFun/+7fGj2Ly/AK6BTDpqyYAhAUS7jIaF6/+JWNwPwEYfdQ="
|
2014-12-17 10:33:49 +01:00
|
|
|
|
2014-09-19 20:32:30 +02:00
|
|
|
install:
|
2014-10-04 19:17:02 +02:00
|
|
|
- sudo apt-get install libXxf86vm-dev libosmesa6-dev
|
|
|
|
|
|
|
|
script:
|
|
|
|
- cargo build --verbose
|
2014-10-10 16:02:15 +02:00
|
|
|
- cargo test --no-run --verbose
|
2014-10-31 18:57:28 +01:00
|
|
|
- cargo test --verbose --features "headless" --no-default-features
|
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
|
|
|
|
|
|
|
after_success: |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
2014-12-28 15:54:27 +01:00
|
|
|
cargo doc --features "window headless" &&
|
2014-12-17 10:33:49 +01:00
|
|
|
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
|