wayland-kbd 0.13.1

Keyboard mapping utility for wayland-client using libxkbcommon.
Documentation
language: rust

rust:
  - 1.20.0
  - stable
  - beta
  - nightly

cache: cargo

os:
  - linux

matrix:
  allow_failures:
    - rust: nightly

before_script:
  - |
      if [ $TRAVIS_RUST_VERSION = "nightly" ]; then
        cargo install rustfmt-nightly --force
      fi


script:
  - |
      if [ $TRAVIS_RUST_VERSION = "nightly" ]; then
        cargo fmt -- --write-mode=diff
      fi
  - cargo build
  - cargo test
  - cargo doc --no-deps

after_success:
  - cp ./doc_index.html ./target/doc/index.html

deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN
  local_dir: "${TRAVIS_BUILD_DIR}/target/doc"
  on:
    branch: master
    rust: stable

notifications:
    webhooks:
        urls:
            - "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MGxldmFucyUzQXNhZmFyYWRlZy5uZXQvJTIxRkt4aGprSUNwakJWelZlQ2RGJTNBc2FmYXJhZGVnLm5ldA"
        on_success: change
        on_failure: always
        on_start: never