gio 0.5.1

Rust bindings for the Gio library
Documentation
language: rust
matrix:
  include:
    - os: linux
      rust: nightly
      env: GTK=3.4
    - os: linux
      rust: nightly
      env: GTK=3.22.30
    - os: linux
      rust: beta
      env: GTK=3.4
    - os: linux
      rust: beta
      env: GTK=3.22.30
    - os: linux
      rust: stable
      env: GTK=3.4
    - os: linux
      rust: stable
      env: GTK=3.22.30
    - os: osx
      rust: nightly
      env: GTK=3.4
    # - os: osx
    #   rust: nightly
    #   env: GTK=3.22.30
    - os: osx
      rust: beta
      env: GTK=3.4
    # - os: osx
    #   rust: beta
    #   env: GTK=3.22.30
    - os: osx
      rust: stable
      env: GTK=3.4
    # - os: osx
    #   rust: stable
    #   env: GTK=3.22.30
sudo: true
addons:
  apt:
    packages:
    - libgtk-3-dev
before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew unlink python; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gtk+3 cairo atk; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig;
    fi
script:
  - rustc --version
  - if [ "$TRAVIS_RUST_VERSION" == "nightly" ] && [ "$GTK" == "3.4" ]; then
    make regen_check;
    fi
  - cargo test --features "embed-lgpl-docs v2_40" --jobs 1
  - cargo doc --features "dox"
  # catch any sneaked in lgpl docs
  - cargo build --features purge-lgpl-docs --jobs 1
  - git diff -R --exit-code
  - mkdir .cargo
  - echo 'paths = ["."]' > .cargo/config
  - git clone -q --depth 50 -b pending https://github.com/gtk-rs/examples _examples
  - cd _examples
  - ./build_travis.sh