File: .travis.yml

package info (click to toggle)
rust-semver-parser 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 172 kB
  • sloc: makefile: 2
file content (24 lines) | stat: -rw-r--r-- 649 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
language: rust
cache: cargo

# this is a long way of saying, "please test 1.22.1, stable, beta, and nightly, but run rustfmt only on stable"
matrix:
  include:
  - rust: "1.22.1"
    env: RUN_RUSTFMT=false
  - rust: "stable"
    env: RUN_RUSTFMT=true
  - rust: "beta"
    env: RUN_RUSTFMT=false
  - rust: "nightly"
    env: RUN_RUSTFMT=false
  allow_failures:
    # bugs may affect nightly; test so we're aware, but don't fail the build
    - rust: nightly

before_script:
  - if [ "${RUN_RUSTFMT}" = "true" ]; then rustup component add rustfmt-preview; fi

script:
  - cargo test
  - if [ "${RUN_RUSTFMT}" = "true" ]; then cargo fmt -- --check; fi