diff --git a/.travis.yml b/.travis.yml index 7f288db4b..e35a87eae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ matrix: - env: GEO_TYPES_FEATURES="" - env: GEO_TYPES_FEATURES="--features serde" - env: GEO_TYPES_FEATURES="--features rstar" - - env: GEO_FEATURES="" + - env: GEO_FEATURES="" RUN_TARPAULIN=1 - env: GEO_FEATURES="--features postgis-integration" - env: GEO_FEATURES="--features use-proj" - env: GEO_FEATURES="--features use-serde" @@ -24,10 +24,8 @@ before_install: tar -xzvf proj-7.0.0.tar.gz; pushd proj-7.0.0 && ./configure --prefix=/usr && make && sudo make install && popd; fi - - if [[ "${TRAVIS_RUST_VERSION}" == stable ]]; then - if [[ "${GEO_FEATURES}" == "" ]]; then - cargo install cargo-tarpaulin; - fi + - if [[ "${TRAVIS_RUST_VERSION}" == stable && "${RUN_TARPAULIN}" ]]; then + cargo install cargo-tarpaulin; fi script: @@ -35,8 +33,6 @@ script: - (cd geo && cargo build --release $GEO_FEATURES && cargo test --release $GEO_FEATURES) after_success: - - if [[ "${TRAVIS_RUST_VERSION}" == stable ]]; then - if [[ "${GEO_FEATURES}" == "" ]]; then - cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID; - fi + - if [[ "${TRAVIS_RUST_VERSION}" == stable && "${RUN_TARPAULIN}" ]]; then + cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID; fi