summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: ce1a48196f53041eb53ae2d1d31b003c5538fce8 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
language: rust

addons:
  apt:
    packages:
      - libssl-dev

matrix:
  fast_finish: true
  allow_failures:
    - rust: nightly
  include:
    - rust: 1.32.0
    - rust: stable
    - rust: beta
    - rust: nightly
    - name: rustfmt/clippy
      rust: stable
      install:
        - rustup component add rustfmt clippy
      script:
        - cargo fmt --all -- --check
        - cargo clippy --all --all-targets

before_cache: |
  if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
    cargo install cargo-tarpaulin -f
  fi

cache: cargo


script:
  - cargo build --all-features --verbose -j 1
  - cargo test  --all-features --verbose -j 1

after_success: |
  if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
    cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
  fi

notifications:
  irc:
    channels:
    - chat.freenode.net#imag
    template:
    - "%{repository_name} (%{branch} @ %{commit} by %{author}): %{result}"