-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (54 loc) · 1.23 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
49
50
51
52
53
54
55
56
57
58
59
60
sudo: false
language: rust
os:
- linux
- osx
cache:
- apt: true
- cargo: true
- bundler: true
- directories:
- doc/target
branches:
only:
- master
matrix:
allow_failures:
- rust: nightly
include:
- rust: stable
sudo: required
addons:
apt:
packages:
- libssl-dev
before_script:
- rustup component add rustfmt
script:
- cargo clean
- cargo test
after_success:
- cargo fmt --all
- bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
- USE_SKEPTIC=1 cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
- rust: beta
before_script:
- rustup component add rustfmt-preview
script:
- cargo clean
- cargo test -j6
after_success:
- rustfmt src/* -f --write-mode overwrite
- rust: nightly
before_script:
- rustup component add rustfmt-preview
script:
- cargo clean
- cargo test -j6
after_success:
- rustfmt src/* -f --write-mode overwrite
- rust: stable
script:
- cargo clean
- cargo doc --no-deps
- rm -f target/doc/.lock