wp_goji_patch 0.2.5

Rust interface for Jira
Documentation
sudo: required

language: rust

branches:
  only:
  - master

matrix:
  fast_finish: true
  include:
  - rust: stable
  - rust: beta
  - rust: nightly
  allow_failures:
  - rust: nightly


install: |
  # should only be necessary until rustfmt produces consistent results in stable/nightly
  # see also https://github.com/xd009642/tarpaulin/issues/150 for tarpaulin nightly dependency
  if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
    `RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install --force cargo-tarpaulin`
    rustup component add rustfmt-preview
  fi

script:
- |
  if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
    cargo fmt --all -- --check
  fi
- cargo test

# Cache `cargo install`ed tools, but don't cache the project's `target`
# directory (which ends up over-caching and filling all disk space!)
# https://levans.fr/rust_travis_cache.html
cache:
  directories:
    - /home/travis/.cargo

before_cache:
  # But don't cache the cargo registry
  - rm -rf /home/travis/.cargo/registry
  # Travis can't cache files that are not readable by "others"
  - chmod -R a+r $HOME/.cargo

addons:
  apt:
    packages:
      # required by tarpaulin code coverage tool
      - libssl-dev

after_success:
  - '[ $TRAVIS_EVENT_TYPE != "cron" ] &&
    [ $TRAVIS_RUST_VERSION = nightly ] &&
    [ $TRAVIS_BRANCH = master ] &&
    [ $TRAVIS_PULL_REQUEST = false ] &&
     cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID || true'
  - '[ $TRAVIS_RUST_VERSION = stable ] &&
    [ $TRAVIS_BRANCH = master ] &&
    [ $TRAVIS_PULL_REQUEST = false ]
    && cargo doc --no-deps &&
    echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d / -f 2`/index.html>" > target/doc/index.html'

deploy:
  provider: pages
  skip-cleanup: true
  github-token: $GH_TOKEN
  local-dir: target/doc
  keep-history: false
  on:
    branch: master
    condition: $TRAVIS_RUST_VERSION = stable

env:
  global:
    secure: AijJsdo/C95ZJYoIkdJXCUkgl4jzkkduYcz84S9/b2kd16mntv96tCN8c3x1IRyr6vnlRdBwZn6ZcvKSHJXdRKfrDYHrh2/GZnMOOP99w1YcCYK2U5geK2/6ubQ7BzhVDulaGDEZz2uXkkdEIpFD9Satq2UiYNlIc6xNbU0wkPi8c/H6JcLNh9cYyK38OJTdGa3ljzrCI3GxVdVE2rzxyZjnSm9TDmb8KhiC2LJqN10h4oG3czcS0n1lZxSIp0wJQuM0L1i79omHRKNfJo1h0JpKqDDJMk6KzBVI3uRU3MvUpVMrnO+zyK8LnZjcXHczs6Ms29sPKIDTYLwg1MMBYPm4bmpeogP/8wMttSCYjCR55lao6xJBcMzgdMLtjT/GEyahlCfDOFrSLd7ZwyJUiep2TcECguz68P32x4gf1CmGu3X9DownBEcUBdKgCw973XbBbQEM3qW4p0EhG2ljS32roe9uzBmVSaRPjEsAiYl7CKOUQxuXxN1qp4TYa9IdXsjrIlFmEVILKmsZ7IcgHVSxaS8LnonwwrCH8DgdMErGo06ldKYJLaJIHVvrvexsAUpTVEeJtDpNc6aETP/+0g4/ZyCkq8ujqnOllVqotcJZNMAIANZhtkwW6VZvgz6LlDydruuYozfTlPS3PXwlr3mEqjLx9ut8yvIDYt4Ty70=