Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build GMT on TravisCI #5

Merged
merged 15 commits into from
Aug 13, 2018
Prev Previous commit
Next Next commit
Don't build on OSX yet
  • Loading branch information
leouieda committed Aug 13, 2018
commit 91c524ded9d9cd9bd46a34856ff2c8182f4275c9
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ branches:

os:
- linux
- osx
#- osx

env:
global:
Expand All @@ -26,7 +26,11 @@ before_install:

install:
# Build and install GMT
- bash ci/build-linux.sh
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
bash ci/build-linux.sh;
else
echo "OSX not supported yet";
fi

script:
- gmt defaults -Vd
Expand Down
8 changes: 6 additions & 2 deletions ci/travis-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
# Setup TravisCI to be able to build and test GMT

# Install dependencies
sudo apt-get install build-essential cmake libcurl4-gnutls-dev libnetcdf-dev \
libgdal1-dev libfftw3-dev libpcre3-dev liblapack-dev ghostscript
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-get install build-essential cmake libcurl4-gnutls-dev libnetcdf-dev \
libgdal1-dev libfftw3-dev libpcre3-dev liblapack-dev ghostscript
else
echo "OSX not supported yet";
fi

# Get the coastlines and country polygons
EXT="tar.gz"
Expand Down