Skip to content

Commit 70e7b85

Browse files
authored
CI: Add TravisCI support (#3)
1 parent a2029c6 commit 70e7b85

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.travis.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Configuration file for TravisCI
2+
3+
language: c
4+
5+
os: linux
6+
dist: bionic
7+
8+
# Only build pushes to the master branch and tags. This avoids the double
9+
# builds than happen when working on a branch instead of a fork.
10+
branches:
11+
only:
12+
- master
13+
# Regex to build tagged commits with version numbers
14+
- /\d+\.\d+(\.\d+)?(\S*)?$/
15+
16+
env:
17+
global:
18+
# GMT install location
19+
- GMT_INSTALL_DIR=${HOME}/gmt-install-dir
20+
- PATH=${GMT_INSTALL_DIR}/bin:${PATH}
21+
22+
addons:
23+
apt:
24+
packages:
25+
- cmake
26+
- build-essential
27+
- libcurl4-gnutls-dev
28+
- libnetcdf-dev
29+
- libgdal-dev
30+
- libfftw3-dev
31+
- libpcre3-dev
32+
- liblapack-dev
33+
- curl
34+
35+
before_install:
36+
# Install GMT master branch
37+
- curl https://raw.githubusercontent.com/GenericMappingTools/gmt/master/ci/build-gmt-master.sh | bash
38+
# Check GMT installation
39+
- gmt --version
40+
- gmt-config --all
41+
42+
install:
43+
- gmt --version
44+
45+
script:
46+
- gmt --version
47+
48+
notifications:
49+
email: false

0 commit comments

Comments
 (0)