forked from HdrHistogram/HdrHistogram_rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
70 lines (67 loc) · 1.92 KB
/
.travis.yml
File metadata and controls
70 lines (67 loc) · 1.92 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: rust
cache: cargo
rust:
- 1.44.0 # nom 6
- stable
- beta
- nightly
os: linux
# always test things that aren't pushes (like PRs)
# never test tags or pushes to non-master branches (wait for PR)
# https://github.com/travis-ci/travis-ci/issues/2200#issuecomment-441395545)
if: type != push OR (tag IS blank AND branch = master)
script:
- cargo test --verbose
- cargo test --verbose --no-default-features --no-run
jobs:
allow_failures:
- rust: nightly
include:
- stage: check # do a pre-screen to make sure this is even worth testing
script: cargo check
rust: stable
- stage: test
rust: stable
os: osx
# Windows is not tested for now b/c of gmp-mpfr-sys:
# https://docs.rs/gmp-mpfr-sys/1.1.13/gmp_mpfr_sys/#building-on-windows
- stage: lint # we lint on beta to future-proof
name: "Rust: beta, rustfmt"
rust: beta
os: linux
script:
- rustup component add rustfmt-preview
- cargo fmt -v -- --check
- name: "Rust: nightly, rustfmt" # and on nightly with allow_fail
rust: nightly
os: linux
script:
- rustup component add rustfmt-preview
- cargo fmt -v -- --check
- name: "Rust: beta, clippy"
rust: beta
os: linux
script:
- rustup component add clippy-preview
- touch ./src/lib.rs && cargo clippy -- -D warnings
- name: "Rust: nightly, clippy"
rust: nightly
os: linux
script:
- rustup component add clippy-preview
- touch ./src/lib.rs && cargo clippy -- -D warnings
- os: linux
stage: coverage
sudo: required
dist: trusty
cache: false
services:
- docker
script:
- docker run --security-opt seccomp=unconfined -v "$PWD:/volume" xd009642/tarpaulin:latest sh -c "cargo tarpaulin --out Xml"
- bash <(curl -s https://codecov.io/bash)
stages:
- check
- test
- lint
- coverage