sudo: false
language: rust
cache: cargo

addons:
  apt:
    packages:
      - libcurl4-openssl-dev
      - libelf-dev
      - libdw-dev
      - binutils-dev
      - cmake
    sources:
      - kalakris-cmake

rust:
  - nightly
  - beta
  - stable

before_script:
  - |
      which cargo-coveralls || cargo install cargo-travis &&
      export PATH=$HOME/.cargo/bin:$PATH

script:
  - cargo test
  - cargo test --features serde
  - cargo test --features postgres
  - cargo test --features diesel

after_success:
  - cargo coveralls

env:
  global:
    - TRAVIS_CARGO_NIGHTLY_FEATURE=""
sudo: false
language: rust
cache: cargo

addons:
  apt:
    packages:
      - libcurl4-openssl-dev
      - libelf-dev
      - libdw-dev
      - binutils-dev
      - cmake
    sources:
      - kalakris-cmake

rust:
  - nightly
  - beta
  - stable

before_script:
  - |
      which cargo-coveralls || cargo install cargo-travis &&
      export PATH=$HOME/.cargo/bin:$PATH

script:
  - cargo fmt -- --check
  - cargo test
  - cargo test --features serde
  - cargo test --features postgres
  - cargo test --features diesel

after_success:
  - cargo coveralls

env:
  global:
    - TRAVIS_CARGO_NIGHTLY_FEATURE=""
Check code style in Travis
Check code style in Travis
