language: rust
rust:
    - stable
    - beta
    - nightly
sudo: false
before_script:
    - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
script:
    - travis-cargo build
    - travis-cargo test
    - travis-cargo doc
after_success:
    - git config user.name "Travis-CI Doc Bot"
    - git config user.email "willusher.life@gmail.com"
    - travis-cargo --only stable doc-upload
env:
  global:
    secure: Tcwn04OZmCAntcLiAMoOJwgIW6r55veMD3d4Yy+qco6KE8FCnYww8zsp1vb4BeRe6asVxsPxJgP2EZeoDdPayZqTAgCw7AVVL1umlhik8XN86cm/BcTDbu7azF8PS0LFh7HaAEarRYBlBn7mFpLZwKjoGGoMxwsKsbmdnCZz9Yk=

language: rust
sudo: false
rust:
    - stable
matrix:
    allow_failures:
        - rust: nightly
    include:
        - rust: beta
          script:
            - travis-cargo build
            - travis-cargo test
            - travis-cargo doc
        - rust: nightly
          script:
            - travis-cargo build
            - travis-cargo test
            - travis-cargo doc

before_script:
    - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
script:
    - travis-cargo build
    - travis-cargo test
    - travis-cargo doc
after_success:
    - git config user.name "Travis-CI Doc Bot"
    - git config user.email "willusher.life@gmail.com"
    - travis-cargo --only stable doc-upload
env:
  global:
    secure: Tcwn04OZmCAntcLiAMoOJwgIW6r55veMD3d4Yy+qco6KE8FCnYww8zsp1vb4BeRe6asVxsPxJgP2EZeoDdPayZqTAgCw7AVVL1umlhik8XN86cm/BcTDbu7azF8PS0LFh7HaAEarRYBlBn7mFpLZwKjoGGoMxwsKsbmdnCZz9Yk=

Allow nightly builds to fail
Allow nightly builds to fail
