sudo: false
language: rust

script:
  - cargo test
  - cargo doc
after_success: |
  [ $TRAVIS_RUST_VERSION = nightly ] &&
  [ $TRAVIS_BRANCH = master ] &&
  [ $TRAVIS_PULL_REQUEST = false ] &&
  echo '<meta http-equiv=refresh content=0;url=ascii/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
sudo: false
language: rust
matrix:
  include:
    - rust: stable
      env: SCRIPT="test"
    - rust: beta
      env: SCRIPT="test"
    - rust: nightly
      env: SCRIPT="test"
    - rust: nightly
      env: SCRIPT="test --features unstable"
script:
  - cargo $SCRIPT
  - cargo doc
after_success: |
  [ $TRAVIS_RUST_VERSION = nightly ] &&
  [ $TRAVIS_BRANCH = master ] &&
  [ $TRAVIS_PULL_REQUEST = false ] &&
  echo '<meta http-equiv=refresh content=0;url=ascii/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

Add testing on all three rust channels
Add testing on all three rust channels
