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

WIP: Build tests nightly #176

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
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
Next Next commit
Move cmake parameters to configuration file
  • Loading branch information
seisman committed Nov 10, 2018
commit e1c0d4cbd933bc5b95611fbed81b34025bb427a2
15 changes: 10 additions & 5 deletions ci/travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@
# To return a failure if any commands inside fail
set -e

cat << EOF >> cmake/ConfigUser.cmake
set (CMAKE_INSTALL_PREFIX "$ENV{INSTALLDIR}")
set (GMT_LIBDIR "$ENV{INSTALLDIR}/lib")
set (DCW_ROOT "$ENV{COASTLINEDIR}")
set (GSHHG_ROOT "$ENV{COASTLINEDIR}")
EOF

cat cmake/ConfigUser.cmake

mkdir build && cd build

cmake -D CMAKE_INSTALL_PREFIX=$INSTALLDIR \
-D GMT_LIBDIR=$INSTALLDIR/lib \
-D DCW_ROOT=$COASTLINEDIR \
-D GSHHG_ROOT=$COASTLINEDIR \
..
cmake ..

make -j
make check
Expand Down