forked from integer32llc/playground-middleware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (35 loc) · 877 Bytes
/
Copy path.travis.yml
File metadata and controls
35 lines (35 loc) · 877 Bytes
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
language: rust
sudo: required
dist: trusty
notifications:
email: false
addons:
apt:
packages:
- libssl-dev
env:
- PATH=$HOME/.cargo/bin:$PATH
script:
- cargo test -j2 --all
matrix:
fast_finish: true
include:
- rust: stable
# Run rustfmt in its own shard.
- rust: stable
env:
- SHARD=rustfmt
before_script:
- rustup component add --toolchain stable rustfmt-preview
script:
- echo "Checking project 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 project codebase with Clippy release `cargo clippy --version`."
- cargo clippy --all --profile test