language: rust

cache: cargo

dist: xenial

rust:
 - stable
 - beta
 - nightly

addons:
  apt:
    packages:
     - golang-go
     - libev-dev
     - uthash-dev

script:
 - cargo build --verbose --all --examples
 - cargo test --verbose --all
 - cargo doc --no-deps
 - make -C examples

deploy:
  provider: pages
  fqdn: docs.quic.tech
  local-dir: target/doc
  skip-cleanup: true
  github-token: $GITHUB_TOKEN
  on:
    branch: master
    condition: $TRAVIS_RUST_VERSION = stable

language: rust

dist: xenial

rust:
 - stable
 - beta
 - nightly

addons:
  apt:
    packages:
     - golang-go
     - libev-dev
     - uthash-dev

script:
 - cargo build --verbose --all --examples
 - cargo test --verbose --all
 - cargo doc --no-deps
 - make -C examples

deploy:
  provider: pages
  fqdn: docs.quic.tech
  local-dir: target/doc
  skip-cleanup: true
  github-token: $GITHUB_TOKEN
  on:
    branch: master
    condition: $TRAVIS_RUST_VERSION = stable

Revert "add Cargo cache to Travis"
Revert "add Cargo cache to Travis"

This seems to be breaking PR builds due to having "branch" and "pull request"
builds which reuse the same build artifacts, which in turn confuses the C
examples Makefile and cause the C examples to fail to build.

See e.g. https://github.com/cloudflare/quiche/pull/20/checks?check_run_id=59225473

This is really the Makefile's fault for being too stupid, but until I can
figure out how to fix it (e.g. make cargo build C examples?), it's just
easier to disable the build cache.

This reverts commit 5ddb63a879067702c4fac749adc96674cb61dc39.
