Skip to content

Commit d258701

Browse files
josephlrrbradford
authored andcommitted
ci: Cleanup .travis.yml
- Move image fetching out of main script - Move installation actions to "install" - Set warning configs via environment variables - Reorder sections to increase readablity Signed-off-by: Joe Richey <[email protected]>
1 parent a4fecee commit d258701

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.travis.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,28 @@ language: rust
33

44
rust:
55
- nightly-2019-11-05
6+
env:
7+
- RUSTFLAGS="-D warnings"
68

7-
before_script:
9+
addons:
10+
apt:
11+
update: true
12+
13+
install:
814
- rustup component add clippy
915
- rustup component add rustfmt
1016
- rustup component add rust-src
1117
- cargo install cargo-xbuild
1218
- sudo apt-get install -y mtools
13-
14-
addons:
15-
apt:
16-
update: true
19+
- wget https://download.clearlinux.org/releases/28660/clear/clear-28660-kvm.img.xz
20+
- unxz clear-28660-kvm.img.xz
21+
- ./make-test-disks.sh
1722

1823
script:
1924
- cargo xbuild --release --target target.json
20-
- cargo xclippy -- -D warnings
21-
- cargo clippy --all-targets --all-features -- -D warnings
25+
- cargo xclippy
26+
- cargo clippy --all-targets --all-features
2227
- cargo fmt --all -- --check
23-
- wget https://download.clearlinux.org/releases/28660/clear/clear-28660-kvm.img.xz
24-
- unxz clear-28660-kvm.img.xz
25-
- ./make-test-disks.sh
2628
- cargo test
2729

2830
deploy:

0 commit comments

Comments
 (0)