language: rust

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

os:
  - linux

rust:
  - stable

env:
  - CARGO_TARGET_DIR=/tmp/bindgen LLVM_VERSION=3.8 BINDGEN_FEATURES=llvm_stable
  - CARGO_TARGET_DIR=/tmp/bindgen LLVM_VERSION=3.9 BINDGEN_FEATURES=

cache:
  directories:
    - $HOME/.cargo

before_install: . ./ci/before_install.sh

before_script: cd libbindgen

script:
  - cargo test --features "$BINDGEN_FEATURES"
  - cargo test --release --features "$BINDGEN_FEATURES"
  - git add -A
  - git diff @
  - git diff-index --quiet HEAD
  - cargo test -p tests_expectations
  - cargo build --features "$BINDGEN_FEATURES _docs"
  - cd ..
  - cargo test --features "$BINDGEN_FEATURES"
  - cargo test --release --features "$BINDGEN_FEATURES"

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:
  - CARGO_TARGET_DIR=/tmp/bindgen LLVM_VERSION=3.8 BINDGEN_FEATURES=llvm_stable
  - CARGO_TARGET_DIR=/tmp/bindgen LLVM_VERSION=3.9 BINDGEN_FEATURES=

cache:
  directories:
    - $HOME/.cargo

before_install: . ./ci/before_install.sh

before_script: cd libbindgen

script:
  - cargo test --features "$BINDGEN_FEATURES"
  - cargo test --release --features "$BINDGEN_FEATURES"
  - git add -A
  - git diff @
  - git diff-index --quiet HEAD
  - cargo build --features "$BINDGEN_FEATURES _docs"
  - cd tests/expectations
  - cargo test
  - cd ../../../bindgen
  - cargo test --features "$BINDGEN_FEATURES"
  - cargo test --release --features "$BINDGEN_FEATURES"

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

Fix Travis CI test integration with workspaces
Fix Travis CI test integration with workspaces
