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