blob: 8d10bfb7a72b82cae1da5133f2b8e077982c60e2 [file] [log] [blame]
language: rust
env:
matrix:
- FEATURES=''
- FEATURES='ssl'
rust:
- stable
- beta
- nightly
script:
- cargo build -v --no-default-features --features "$FEATURES"
- cargo test -v -j 1 --no-default-features --features "$FEATURES"
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc && \
echo '<meta http-equiv=refresh content=0;url=tiny_http/index.html>' > target/doc/index.html && \
sudo pip install ghp-import && \
ghp-import -n target/doc && \
git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages