aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 6a1c30fa3d735425cd2b2eebe3a06c7817cb037a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: rust

rust:
    - stable
    - beta
    - nightly

sudo: false

notifications:
    email:
        on_success: never
        on_failure: always

before_script:
  - |
      pip install 'travis-cargo<0.2' --user &&
      export PATH=$HOME/.local/bin:$PATH

script:
    - travis-cargo build
    - travis-cargo test
    - travis-cargo doc -- --no-deps
    # TODO: Reenable later
    #- rustdoc --test README.md -L target/debug

after_success:
    - curl https://mvdnes.github.io/rust-docs/travis-doc-upload.sh | bash

env:
  global:
    # override the default `--features unstable` used by travis-cargo
    # since unstable is activated by default
    - TRAVIS_CARGO_NIGHTLY_FEATURE=""