language: rust
sudo: false

matrix:
  include:
    - rust: 1.29.0
    - rust: stable
    - rust: beta
    - rust: nightly
    - rust: nightly
      env:
       - FEATURES='nightly'

branches:
  # Don't build these branches
  except:
    # Used by bors
    - trying.tmp
    - staging.tmp

script:
  - cargo build --verbose --features "$FEATURES"
  - cargo test --verbose --features "$FEATURES"
  - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo bench --verbose --features "$FEATURES"; fi
  - cargo doc --verbose --features "$FEATURES"

  - cargo build --verbose --features "$FEATURES serde"
  - cargo test --verbose --features "$FEATURES serde"
  - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo bench --verbose --features "$FEATURES serde"; fi
  - cargo doc --verbose --features "$FEATURES serde"

language: rust
sudo: false

matrix:
  include:
    - rust: 1.29.0
    - rust: stable
    - rust: beta
    - rust: nightly
    - rust: nightly
      env:
       - FEATURES='nightly'

    # test a target without sse2 for raw/generic.rs
    - rust: stable
      env:
       - TARGET=i586-unknown-linux-gnu
      install:
       - rustup target add $TARGET
      script:
       - cargo build --verbose --target $TARGET
       - cargo test --verbose --target $TARGET

branches:
  # Don't build these branches
  except:
    # Used by bors
    - trying.tmp
    - staging.tmp

script:
  - cargo build --verbose --features "$FEATURES"
  - cargo test --verbose --features "$FEATURES"
  - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo bench --verbose --features "$FEATURES"; fi
  - cargo doc --verbose --features "$FEATURES"

  - cargo build --verbose --features "$FEATURES serde"
  - cargo test --verbose --features "$FEATURES serde"
  - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo bench --verbose --features "$FEATURES serde"; fi
  - cargo doc --verbose --features "$FEATURES serde"

Add i586 to CI for non-sse2 testing
Add i586 to CI for non-sse2 testing
