language: rust

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - gcc-5

os:
  - linux

rust:
  - stable

env:
  global:
    - CARGO_TARGET_DIR=/tmp/bindgen
  matrix:
    - LLVM_VERSION=3.7.1 BINDGEN_FEATURES=testing_only_llvm_stable
    - LLVM_VERSION=3.8.1 BINDGEN_FEATURES=testing_only_llvm_stable
    - LLVM_VERSION=3.9.0 BINDGEN_FEATURES=
    - LLVM_VERSION=4.0.0 BINDGEN_FEATURES=

matrix:
  fast_finish: true
  allow_failures:
    - env: LLVM_VERSION=4.0.0 BINDGEN_FEATURES=
    - env: LLVM_VERSION=3.7.1 BINDGEN_FEATURES=testing_only_llvm_stable

cache:
  directories:
    - $HOME/.cargo

before_install: . ./ci/before_install.sh

script:
  - ./ci/assert-rustfmt.sh
  - BINDGEN_FEATURES="$BINDGEN_FEATURES" ./ci/assert-docs.sh
  - BINDGEN_FEATURES="$BINDGEN_FEATURES" ./ci/test.sh

notifications:
  webhooks: http://build.servo.org:54856/travis

language: rust

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - gcc-5

os:
  - linux

rust:
  - stable

env:
  global:
    - CARGO_TARGET_DIR=/tmp/bindgen
  matrix:
    - LLVM_VERSION=3.7.1 BINDGEN_FEATURES=testing_only_llvm_stable
    - LLVM_VERSION=3.8.1 BINDGEN_FEATURES=testing_only_llvm_stable
    - LLVM_VERSION=3.9.0 BINDGEN_FEATURES=
    - LLVM_VERSION=4.0.0 BINDGEN_FEATURES=

matrix:
  fast_finish: true
  allow_failures:
    - env: LLVM_VERSION=4.0.0 BINDGEN_FEATURES=
    - env: LLVM_VERSION=3.7.1 BINDGEN_FEATURES=testing_only_llvm_stable

cache:
  directories:
    - $HOME/.cargo

before_install: . ./ci/before_install.sh

script:
  # - ./ci/assert-rustfmt.sh
  - BINDGEN_FEATURES="$BINDGEN_FEATURES" ./ci/assert-docs.sh
  - BINDGEN_FEATURES="$BINDGEN_FEATURES" ./ci/test.sh

notifications:
  webhooks: http://build.servo.org:54856/travis

Disable rustfmt tests, for now.
tests: Disable rustfmt tests, for now.
