sudo: false
language: rust
rust:
  - nightly
  - 1.0.0-beta

script:
  - cargo build --verbose
  - cargo test --verbose
  - cargo doc --verbose

after_success: |
  [ $TRAVIS_RUST_VERSION = nightly ] &&
  [ $TRAVIS_BRANCH = master ] &&
  [ $TRAVIS_PULL_REQUEST = false ] &&
  echo '<meta http-equiv=refresh content=0;url=cssparser/index.html>' > target/doc/index.html &&
  pip install --user ghp-import &&
  ~/.local/bin/ghp-import -n target/doc &&
  git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages

env:
  - secure: N66sY4jTqznkJRTNshbib1o7GpgPN8Rw66KFGkRxDfuDOZGkpmTWRPP4tLwmbFfdMOSFKd8Q1OTUOGqvRgny4TErcCF+E56/tUSdGfOFqKeGqowUGhRBLx4eso8FP1ECCTEEZE4hEs1Yb10BrPvZU6YmdBcc5e8YeDZBTAhqMUE=

sudo: false
language: rust
rust:
  - nightly
  - beta

script:
  - cargo build --verbose
  - cargo test --verbose
  - cargo doc --verbose

after_success: |
  [ $TRAVIS_RUST_VERSION = nightly ] &&
  [ $TRAVIS_BRANCH = master ] &&
  [ $TRAVIS_PULL_REQUEST = false ] &&
  echo '<meta http-equiv=refresh content=0;url=cssparser/index.html>' > target/doc/index.html &&
  pip install --user ghp-import &&
  ~/.local/bin/ghp-import -n target/doc &&
  git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages

env:
  - secure: N66sY4jTqznkJRTNshbib1o7GpgPN8Rw66KFGkRxDfuDOZGkpmTWRPP4tLwmbFfdMOSFKd8Q1OTUOGqvRgny4TErcCF+E56/tUSdGfOFqKeGqowUGhRBLx4eso8FP1ECCTEEZE4hEs1Yb10BrPvZU6YmdBcc5e8YeDZBTAhqMUE=

Test on whatever is the latest beta.
Test on whatever is the latest beta.
