Skip to content

Commit 42377e2

Browse files
committed
CI: move out code coverage related install/script
1 parent 1162ebf commit 42377e2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.travis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ matrix:
1919
env: TARGET=x86_64-apple-darwin
2020
- rust: nightly
2121
env: TARGET=x86_64-unknown-linux-gnu COVERAGE=1
22+
install:
23+
- ./ci/build-lcov
24+
- sudo apt-get install -qq libclang-common-3.8-dev llvm-3.8-dev
25+
script:
26+
- ./ci/run-cov
27+
- bash <(curl -s https://codecov.io/bash) -f final.info
2228
allow_failures:
2329
- rust: nightly
2430
fast_finish: true
@@ -28,16 +34,12 @@ install:
2834
- if [[ "$TARGET" == "x86_64-unknown-linux-musl" ]]; then sudo apt-get install -qq musl-tools; fi
2935
- if [[ "$TARGET" == "aarch64-unknown-linux-gnu" ]]; then sudo apt-get install -qq gcc-aarch64-linux-gnu libc6-arm64-cross libc6-dev-arm64-cross; fi
3036
- if [[ "$TARGET" == "arm-unknown-linux-gnueabi" ]]; then sudo apt-get install -qq gcc-arm-linux-gnueabi libc6-armel-cross libc6-dev-armel-cross; fi
31-
- if [[ "$COVERAGE" == "1" ]]; then ./ci/build-lcov; fi
32-
- if [[ "$COVERAGE" == "1" ]]; then sudo apt-get install libclang-common-3.8-dev llvm-3.8-dev; fi
3337
before_script:
3438
- rustup target add $TARGET || true
3539
script:
3640
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cargo build --verbose --no-default-features --features gnu,lsb,networking,posix --target $TARGET; fi
3741
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cargo build --verbose --all --target $TARGET; fi
3842
- if [[ "$TARGET" =~ "x86_64-unknown-linux-*" ]]; then cargo test --verbose --all --target $TARGET; fi
39-
- if [[ "$COVERAGE" == "1" ]]; then ./ci/run-cov; fi
40-
- if [[ "$COVERAGE" == "1" ]]; then bash <(curl -s https://codecov.io/bash) -f final.info; fi
4143
notifications:
4244
email:
4345
on_success: never

0 commit comments

Comments
 (0)