Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
- 'doc/examples/**'
- 'doc/scripts/**'
- '.github/workflows/tests.yml'
workflow_dispatch:

defaults:
run:
Expand Down
3 changes: 0 additions & 3 deletions ci/config-gmt-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ set (DCW_ROOT "$ENV{COASTLINEDIR}/dcw")

set (GMT_ENABLE_OPENMP TRUE)

# Always use the 'static' data server in CI.
set (GMT_DATA_SERVER static)

# recommended even for release build
set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement ${CMAKE_C_FLAGS}")
# extra warnings
Expand Down
3 changes: 0 additions & 3 deletions ci/config-gmt-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ set (GSHHG_ROOT "$ENV{COASTLINEDIR}/gshhg")
set (DCW_ROOT "$ENV{COASTLINEDIR}/dcw")

set (GMT_ENABLE_OPENMP TRUE)

# Always use the 'static' data server in CI.
set (GMT_DATA_SERVER static)
EOF

if [[ "$RUN_TESTS" == "true" ]]; then
Expand Down
5 changes: 3 additions & 2 deletions cmake/ConfigUserAdvancedTemplate.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ set (GMT_ENABLE_OPENMP TRUE)
# Uncomment the following line to enable running tests of the GMT supplements
#set (DO_SUPPLEMENT_TESTS ON)

# Uncomment the following line if you need to run the full tests suite using
# the gmtserver "static" distribution instead of the default server.
# Uncomment the following line if you need to override the default data server
# for tests. When DO_TESTS is ON, the default "oceania" server is changed to
# "static" automatically unless you set GMT_DATA_SERVER explicitly.
# set (GMT_DATA_SERVER "static")

# List extra sub-dirs of 'src' with a CMakeLists.txt to build custom modules
Expand Down
7 changes: 7 additions & 0 deletions cmake/modules/ConfigCMake.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@ if (DO_EXAMPLES OR DO_TESTS AND NOT SUPPORT_EXEC_IN_BINARY_DIR)
set (SUPPORT_EXEC_IN_BINARY_DIR ON)
endif (DO_EXAMPLES OR DO_TESTS AND NOT SUPPORT_EXEC_IN_BINARY_DIR)

# Tests should use the static data server by default unless the user explicitly set
# GMT_DATA_SERVER to something else.
if (DO_TESTS AND GMT_DATA_SERVER STREQUAL "oceania")
message (STATUS "Setting GMT_DATA_SERVER to 'static' for tests")
set (GMT_DATA_SERVER "static")
endif (DO_TESTS AND GMT_DATA_SERVER STREQUAL "oceania")

# Some tests are known to fail, and can be excluded from the test by adding
# the comment "# GMT_KNOWN_FAILURE".
if (NOT DEFINED GMT_ENABLE_KNOWN2FAIL)
Expand Down
Loading