mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
33 lines
683 B
YAML
33 lines
683 B
YAML
language: rust
|
|
|
|
rust:
|
|
- nightly
|
|
- stable
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libxxf86vm-dev
|
|
|
|
script:
|
|
- cargo build --verbose
|
|
- cargo test --verbose
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
after_success:
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo doc &&
|
|
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
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --token ${CRATESIO_TOKEN}
|