Skip to content

Commit

Permalink
Merge georust#329
Browse files Browse the repository at this point in the history
329: Travis CI – Only compile+install proj if we need it. r=frewsxcv a=frewsxcv



Co-authored-by: Corey Farwell <coreyf@rwell.org>
  • Loading branch information
bors[bot] and frewsxcv committed Dec 24, 2018
2 parents db95c2f + bdf7110 commit 7def88c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ matrix:
- env: GEO_FEATURES="--features use-serde"

before_install:
- sudo apt-get update
- wget https://github.com/OSGeo/proj.4/releases/download/5.0.0/proj-5.0.0.tar.gz
- tar -xzvf proj-5.0.0.tar.gz
- pushd proj-5.0.0 && ./configure --prefix=/usr && make && sudo make install && popd
- if [ "${GEO_FEATURES}" == "--features use-proj" ]; then
sudo apt-get update;
wget https://github.com/OSGeo/proj.4/releases/download/5.0.0/proj-5.0.0.tar.gz;
tar -xzvf proj-5.0.0.tar.gz;
pushd proj-5.0.0 && ./configure --prefix=/usr && make && sudo make install && popd;
fi

script:
- (cd geo-types && cargo build $GEO_TYPES_FEATURES && cargo test $GEO_TYPES_FEATURES)
- (cd geo && cargo build $GEO_FEATURES && cargo test $GEO_FEATURES)
- (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)

0 comments on commit 7def88c

Please sign in to comment.