forked from gotham-rs/gotham
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (48 loc) · 1.2 KB
/
.travis.yml
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
language: rust
sudo: required
dist: trusty
addons:
apt:
packages:
- libssl-dev
env:
- PATH=$HOME/.cargo/bin:$PATH
script:
- cargo test -j2 --all
matrix:
fast_finish: true
include:
- rust: stable
- rust: beta
- rust: nightly
# Run rustfmt in its own shard.
- rust: stable
env:
- SHARD=rustfmt
before_script:
- rustup component add --toolchain stable rustfmt-preview
script:
- echo "Checking Gotham codebase with rustfmt release `cargo fmt --version`."
- cargo fmt --all -- --check
# Run Clippy in its own shard.
- rust: stable
env:
- SHARD=clippy
before_script:
- rustup component add --toolchain stable clippy
script:
- echo "Checking Gotham codebase with Clippy release `cargo clippy --version`."
- cargo clippy --all --profile test
# Run coverage in its own shard.
- rust: stable
env:
- SHARD=coverage
before_script:
- cargo install -f cargo-tarpaulin
script:
- cargo tarpaulin --all --forward --out Xml
- bash <(curl -s https://codecov.io/bash)
allow_failures:
- rust: nightly
- env:
- SHARD=coverage