language: rust
os:
  - linux
  - osx
rust:
  - stable
  - nightly
matrix:
  exclude:
    - rust: stable
      env: FEATURE=nightly
  allow_failures:
    - os: osx
before_script:
  - pip install 'travis-cargo<0.2' --user  && export PATH=$HOME/Library/Python/2.7/bin:$HOME/.local/bin:$PATH
script:
  - travis-cargo test -- --features $FEATURE --no-default-features
  - travis-cargo doc -- --features $FEATURE --no-default-features
after_success:
  - "[[ $TRAVIS_OS_NAME = linux ]] && travis-cargo --only stable doc-upload"
  - "[[ $TRAVIS_OS_NAME = linux ]] && travis-cargo --only stable coveralls"
env:
  global:
    - TRAVIS_CARGO_NIGHTLY_FEATURE=""
    - secure: Es8/QExA+XfWaTi2wQqpJL+yc4d3yU9/dfCpVFhyWpu+2XXIvbPbdqFuiZG6QVGaYOmwjlFJ5gCsAqxliG2wzVHkv+KhA1yeVn4ia41Vmx1mJlEU+O7ZNldfgjWemWKTD5kTEFtTBItswKUFH9LsFQ5sztV6/7I9kZZJAxWiXjs=
  matrix:
    - FEATURE=with-serde-codegen
    - FEATURE=nightly

language: rust
os:
  - linux
  - osx
rust:
  - stable
  - nightly
matrix:
  exclude:
    - rust: stable
      env: FEATURE=nightly
  allow_failures:
    - os: osx
before_script:
  - pip install 'travis-cargo<0.2' --user  && export PATH=$HOME/Library/Python/2.7/bin:$HOME/.local/bin:$PATH
script:
  - travis-cargo test -- --features $FEATURE --no-default-features
  - travis-cargo doc -- --features $FEATURE --no-default-features
after_success:
  - "[[ $TRAVIS_OS_NAME = linux ]] && travis-cargo --only stable doc-upload"
  - "[[ $TRAVIS_OS_NAME = linux ]] && travis-cargo --only stable coveralls"
env:
  global:
    - TRAVIS_CARGO_NIGHTLY_FEATURE=""
    - secure: YLKS9UzfICZMbSzwZA5AjM9kM+S9dTXWD8/ZStSNvmGrQKBP1zm0B66Zn64ExfulmJi6Pf5c7imWQKVCfDbJdRb+jQHqrD+J9gfhglcCU0fbqQmak/n+2EWUy0NayJFZ/+7/Fm+Lda+JUICNhRn1Ck9nhx1bDPdLIQm12JTq86E=
  matrix:
    - FEATURE=with-serde-codegen
    - FEATURE=nightly

Update token for gh-pages pushes
chore(auth): Update token for gh-pages pushes

Fixes #45
