Skip to content

Commit

Permalink
[CI PERF] dont run tarpaulin for GEO_TYPES_FEATURES
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed May 9, 2020
1 parent 03fe2ea commit 2443f47
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -24,19 +24,15 @@ 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:
- (cd geo-types && cargo build --release $GEO_TYPES_FEATURES && cargo test --release $GEO_TYPES_FEATURES)
- (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

0 comments on commit 2443f47

Please sign in to comment.