Skip to content

Commit a14b6fa

Browse files
EwoutHlu-zero
authored andcommitted
Travis CI: Cleanup & update dependencies (#892)
- Update cmake to 3.13.3 - Update nasm to 2.14.02 - Only install cargo-kcov on job that uses it - Merge Doc and Clippy jobs since both are very quick - Test build in --release configuration Reduce the total run time from about 1 hr 6 min to about 57 min
1 parent f82d92b commit a14b6fa

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.travis.yml

+15-14
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ addons:
55
apt:
66
packages: binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev
77
before_install:
8-
- wget -O cmake.sh https://cmake.org/files/v3.10/cmake-3.10.2-Linux-x86_64.sh
8+
- wget -O cmake.sh https://cmake.org/files/v3.13/cmake-3.13.3-Linux-x86_64.sh
99
- sudo sh cmake.sh --skip-license --exclude-subdir --prefix=/usr
1010
- sudo rm -fR /usr/local/cmake*
1111
- hash -r
1212
- which cmake
1313
- cmake --version
14-
- wget https://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.xz
15-
- tar -xvf nasm-2.13.03.tar.xz
16-
- cd nasm-2.13.03
14+
- wget https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.xz
15+
- tar -xvf nasm-2.14.02.tar.xz
16+
- cd nasm-2.14.02
1717
- ./configure
1818
- make
1919
- sudo make install
@@ -24,21 +24,22 @@ before_install:
2424
- cd kcov-36
2525
- mkdir .build && cd .build
2626
- cmake .. && make && sudo make install
27-
- kcov --version
28-
- cargo install cargo-kcov
27+
2928
jobs:
3029
include:
3130
- name: "Build & Coveralls"
32-
script: cargo build --verbose &&
33-
cargo kcov --coveralls --features=decode_test -- --verify --exclude-pattern=$HOME/.cargo,aom_build,.h,test
31+
script:
32+
- cargo install cargo-kcov
33+
- kcov --version
34+
- cargo build --release --verbose
35+
- cargo kcov --coveralls --features=decode_test -- --verify --exclude-pattern=$HOME/.cargo,aom_build,.h,test
3436
- name: "Tests"
3537
script: cargo test --verbose --release --features=decode_test -- --ignored
3638
- name: "Bench"
3739
script: cargo bench --verbose
38-
- name: "Clippy (linter): verifying code quality"
40+
- name: "Doc & Clippy (linter): verifying code quality"
3941
script:
40-
rustup component add clippy &&
41-
cargo clippy --version &&
42-
cargo clippy -- -D warnings -A clippy::all --verbose
43-
- name: "Doc"
44-
script: cargo doc --verbose
42+
- cargo doc --verbose
43+
- rustup component add clippy
44+
- cargo clippy --version
45+
- cargo clippy -- -D warnings -A clippy::all --verbose

0 commit comments

Comments
 (0)