Skip to content

Commit

Permalink
Travis CI – Only compile+install proj if we need it.
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Dec 24, 2018
1 parent d95f564 commit 589c2da
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ 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)
Expand Down

0 comments on commit 589c2da

Please sign in to comment.