gdk 0.13.0

Rust bindings for the GDK 3 library
Documentation
dist: xenial
language: rust
os:
  - linux
  - osx
rust:
  - nightly
  - beta
  - stable
  - 1.40.0
env:
  - GTK=3.14 FEATURES=
  - GTK=3.24 FEATURES=v3_16
jobs:
  exclude:
    - os: osx
      env: GTK=3.24 FEATURES=v3_16

addons:
  apt:
    packages:
    - libgtk-3-dev
    - libmount-dev
    - xvfb

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew unlink python@2; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gtk+3 cairo atk; fi

script:
  - rustc --version
  - if [ "$TRAVIS_RUST_VERSION" == "stable" ] && [ "$GTK" == "3.14" ]; then
      rustup component add rustfmt;
      make regen_check;
    fi
  - cargo doc --features "dox,embed-lgpl-docs"
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then xvfb-run cargo test --features "$FEATURES,embed-lgpl-docs"; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cargo test --features "$FEATURES,embed-lgpl-docs"; fi
  # catch any sneaked in lgpl docs
  - cargo build --features "$FEATURES,purge-lgpl-docs" --jobs 1
  - git diff -R --exit-code
  - rustc --version
  - mkdir .cargo
  - echo 'paths = ["."]' > .cargo/config
  - git clone -q --depth 50 -b master https://github.com/gtk-rs/examples _examples
  - cd _examples
  - ./build_travis.sh
  - if [ "$TRAVIS_RUST_VERSION" == "stable" ] && [ "$GTK" == "3.14" ]; then
      cd ..;
      git clone https://github.com/gtk-rs/checker;
      cd checker && cargo build --release;
      cd .. && ./checker/target/release/checker .;
      ./checker/check_init_asserts;
    fi