By stating that hyper does not need sudo to build it can be compiled in a container: http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
22 lines
719 B
YAML
22 lines
719 B
YAML
language: rust
|
|
sudo: false
|
|
|
|
script:
|
|
- cargo build
|
|
- cargo test
|
|
- cargo bench --no-run
|
|
|
|
after_success: |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo doc &&
|
|
echo '<meta http-equiv=refresh content=0;url=hyper/index.html>' > target/doc/index.html &&
|
|
git shortlog -s -n | cut -c 8- > target/doc/humans.txt &&
|
|
sudo pip install ghp-import &&
|
|
ghp-import -n target/doc &&
|
|
git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
|
|
|
env:
|
|
global:
|
|
- secure: kHuPGsSt14Y7TTy+4NeNMQ4yhENXm38OM26G0ZER870QVOQH8cBZk9a9jgA36F8CGkGAMkFJ5lQw5RginQX01zaCev765XqCF8VvToXq9n/Vg8+oxR5LepC1ybY06yd7AuW/znB6cnQ8BB8HJK5FvZJ1PqH+yubzyyada8c/sVQ=
|