branches:
  except:
  - /.*(.tmp)$/

language: rust

matrix:
  include:
  - os: osx
    rust: nightly
  - rust: nightly
    before_script:
    - rustup component add rustfmt-preview
    script:
    - cargo fmt --all -- --check
    - cargo test --features "serde std v1 v3 v4 v5"
    - cargo bench --features "serde std v1 v3 v4 v5"
  - os: linux
    rust: nightly
    script:
    - cargo test --features "const_fn"
  - rust: stable
    before_script:
    - rustup component add clippy-preview
    script:
    - cargo clippy --features "u128 v1 v3 v4 v5 slog"
  - rust: 1.22.0
    script:
    - cargo test --features "serde std v4"

notifications:
  email:
    on_success: never

os: linux

rust:
- stable
- beta
- nightly

script:
- cargo test --no-default-features
- cargo test
- cargo test --features "serde"
- cargo test --features "v1"
- cargo test --features "v3"
- cargo test --features "v4"
- cargo test --features "v5"
- cargo test --features "slog"
- cargo test --features "serde std v1 v3 v4 v5"

sudo: false

branches:
  except:
  - /.*(.tmp)$/

language: rust

matrix:
  include:
  - os: osx
    rust: nightly
  - rust: nightly
    before_script:
    - rustup component add rustfmt-preview
    script:
    - cargo fmt --all -- --check
    - cargo test --features "serde std v1 v3 v4 v5"
    - cargo bench --features "serde std v1 v3 v4 v5"
  - os: linux
    rust: nightly
    script:
    - cargo test --features "const_fn"
  - rust: stable
    before_script:
    - rustup component add clippy-preview
    script:
    - cargo clippy --features "u128 v1 v3 v4 v5 slog"
  - rust: 1.22.0
    script:
    - cargo test --features "serde std v4"

notifications:
  email:
    on_success: never

os: linux

rust:
- stable
- beta
- nightly

script:
- cargo test --no-default-features
- cargo test
- cargo test --features "serde"
- cargo test --features "v1"
- cargo test --features "v3"
- cargo test --features "v3 stdweb"
- cargo test --features "v3 wasm-bindgen"
- cargo test --features "v4"
- cargo test --features "v4 stdweb"
- cargo test --features "v4 wasm-bindgen"
- cargo test --features "v5"
- cargo test --features "v5 stdweb"
- cargo test --features "v5 wasm-bindgen"
- cargo test --features "slog"
- cargo test --features "serde std v1 v3 v4 v5"

sudo: false

Add stdweb / wasm-bindgen tests
Add stdweb / wasm-bindgen tests

Signed-off-by: Robert Vojta <a0fa7487fea03dd3157816d80d616fb3b2db07a4@me.com>
