language: python
python:
    - 2.7

env:
    - RUST_VERSION=stable
    - RUST_VERSION=nightly

notifications:
    email:
        recipients:
            - ci@mathijs.vd-nes.nl
        on_success: never
        on_failure: always

install:
    - curl -o ~/rustup.sh https://static.rust-lang.org/rustup.sh
    - sudo sh ~/rustup.sh --spec=$RUST_VERSION --disable-sudo -y 2> /dev/null

before_script:
    - rustc --version
    - cargo --version

script:
    - '[ "$TRAVIS_RUST_VERSION" != "nightly" ] || cargo build --features no_std'
    - '[ "$TRAVIS_RUST_VERSION" != "nightly" ] || cargo test --features no_std'
    - cargo build
    - cargo test
    - cargo doc --no-deps
    - rustdoc --test README.md -L target/debug

after_success:
    - curl https://mvdnes.github.io/rust-docs/shippable-doc-upload.sh | sh

language: python
python:
    - 2.7

env:
    - RUST_VERSION=stable
    - RUST_VERSION=nightly

notifications:
    email:
        recipients:
            - ci@mathijs.vd-nes.nl
        on_success: never
        on_failure: always

install:
    - curl -o ~/rustup.sh https://static.rust-lang.org/rustup.sh
    - sudo sh ~/rustup.sh --spec=$RUST_VERSION --disable-sudo -y 2> /dev/null

before_script:
    - rustc --version
    - cargo --version

script:
    - '[ "$RUST_VERSION" != "nightly" ] || cargo build --features no_std'
    - '[ "$RUST_VERSION" != "nightly" ] || cargo test --features no_std'
    - cargo build
    - cargo test
    - cargo doc --no-deps
    - rustdoc --test README.md -L target/debug

after_success:
    - curl https://mvdnes.github.io/rust-docs/shippable-doc-upload.sh | sh

Use the correct environment variable
Use the correct environment variable
