language: rust
sudo: false

matrix:
  fast_finish: true
  allow_failures:
    - rust: nightly
  include:
      - rust: 1.3.0 # minimum supported rustc version
        env: FEATURES="--no-default-features"
      - rust: stable
      - rust: beta
      - rust: nightly

before_script:
  - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH

script:
  - |
      travis-cargo build -- $FEATURES &&
      travis-cargo test -- $FEATURES &&
      travis-cargo doc -- $FEATURES &&
      echo "Testing README" &&
      rustdoc --test README.md -L dependency=./target/debug/deps --extern nickel=./target/debug/libnickel.rlib

after_success:
  - |
      (echo "docs.nickel.rs" > target/doc/CNAME) &&
      travis-cargo --only stable doc-upload

env:
  global:
    secure: nPXTdkq9TK4LmqJWqB4jxscDG1mnqJzO0UX5ni+oC0SohjgBxdWjbvJ8Kthk3c8Qg/2zGlCryuT1lV4TcD3jF86MHlRlXsO3G8fCbEGdLLzppbV0A2VnEw1knhv2mfUhxA8hsFJE2ncT5qeOVyQ6N3PAMGoYkdhhbD9N/9EWuqs=

language: rust
sudo: false

matrix:
  fast_finish: true
  allow_failures:
    - rust: nightly
  include:
      - rust: 1.5.0 # minimum supported rustc version
        env: FEATURES="--no-default-features"
      - rust: stable
      - rust: beta
      - rust: nightly

before_script:
  - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH

script:
  - |
      travis-cargo build -- $FEATURES &&
      travis-cargo test -- $FEATURES &&
      travis-cargo doc -- $FEATURES &&
      echo "Testing README" &&
      rustdoc --test README.md -L dependency=./target/debug/deps --extern nickel=./target/debug/libnickel.rlib

after_success:
  - |
      (echo "docs.nickel.rs" > target/doc/CNAME) &&
      travis-cargo --only stable doc-upload

env:
  global:
    secure: nPXTdkq9TK4LmqJWqB4jxscDG1mnqJzO0UX5ni+oC0SohjgBxdWjbvJ8Kthk3c8Qg/2zGlCryuT1lV4TcD3jF86MHlRlXsO3G8fCbEGdLLzppbV0A2VnEw1knhv2mfUhxA8hsFJE2ncT5qeOVyQ6N3PAMGoYkdhhbD9N/9EWuqs=

Upgrade minimum Rust version to 1.5
feat(Rust): Upgrade minimum Rust version to 1.5

Required for upgraded dependencies to build on stable Rust.

BREAKING CHANGE: The minimum Rust version to build Nickel is now 1.5.

Pull request: #321
Approved by: Ryman
