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

CI: Add TravisCI support #3

Merged
merged 4 commits into from
Apr 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Configuration file for TravisCI

language: c

os: linux
dist: bionic

# Only build pushes to the master branch and tags. This avoids the double
# builds than happen when working on a branch instead of a fork.
branches:
only:
- master
# Regex to build tagged commits with version numbers
- /\d+\.\d+(\.\d+)?(\S*)?$/

env:
global:
# GMT install location
- GMT_INSTALL_DIR=${HOME}/gmt-install-dir
- PATH=${GMT_INSTALL_DIR}/bin:${PATH}

addons:
apt:
packages:
- cmake
- build-essential
- libcurl4-gnutls-dev
- libnetcdf-dev
- libgdal-dev
- libfftw3-dev
- libpcre3-dev
- liblapack-dev
- curl

before_install:
# Install GMT master branch
- curl https://raw.githubusercontent.com/GenericMappingTools/gmt/master/ci/build-gmt-master.sh | bash
# Check GMT installation
- gmt --version
- gmt-config --all

install:
- gmt --version

script:
- gmt --version

notifications:
email: false