aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 14f5a6c923a83e9e3ee68ee5fa7852af8a7d3c33 (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
if: type != push OR branch = master

language: rust
matrix:
  include:
    - rust: stable
      name: check if `cargo fmt --all` is applied
      before_script: rustup component add rustfmt-preview
      script: cargo fmt --all -- --check

    - language: node_js
      node_js: node
      name: check links
      install: npm install -g markdown-link-check
      script:
        - markdown-link-check -c link-check-headers.json README.md
        - markdown-link-check -c link-check-headers.json CHANGELOG.md
        - markdown-link-check -c link-check-headers.json examples/README.md

    - rust: stable
      name: clippy
      before_script: rustup component add clippy
      script: cargo clippy --all -- -D warnings

    - rust: 1.36.0
    - rust: stable
    - rust: beta
    - rust: nightly

script:
  - cargo test

jobs:
  allow_failures:
    - name: clippy