diff options
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/single-file-gfortran.sh | 11 | ||||
-rw-r--r-- | ci/single-file.patch | 29 |
2 files changed, 40 insertions, 0 deletions
diff --git a/ci/single-file-gfortran.sh b/ci/single-file-gfortran.sh new file mode 100755 index 0000000..904c7f8 --- /dev/null +++ b/ci/single-file-gfortran.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +output="${OUTPUT:-fpm-single-file.F90}" + +args=("$@") +file=$(printf "%s\n" "${args[@]}" | grep -P '^.+\.[fF]90$') +if [ $? = 0 ]; then + echo " + Appending source file '$file' to '${output}'" + cat $file >> "${output}" +fi +exec gfortran "${args[@]}" diff --git a/ci/single-file.patch b/ci/single-file.patch new file mode 100644 index 0000000..7980a7a --- /dev/null +++ b/ci/single-file.patch @@ -0,0 +1,29 @@ +diff --git a/fpm.toml b/fpm.toml +index 12ec05aa..20425dfd 100644 +--- a/fpm.toml ++++ b/fpm.toml +@@ -14,22 +14,5 @@ rev = "2f5eaba864ff630ba0c3791126a3f811b6e437f3" + git = "https://github.com/urbanjost/M_CLI2.git" + rev = "ea6bbffc1c2fb0885e994d37ccf0029c99b19f24" + +-[[test]] +-name = "cli-test" +-source-dir = "test/cli_test" +-main = "cli_test.f90" +- +-[[test]] +-name = "new-test" +-source-dir = "test/new_test" +-main = "new_test.f90" +- +-[[test]] +-name = "fpm-test" +-source-dir = "test/fpm_test" +-main = "main.f90" +- +-[[test]] +-name = "help-test" +-source-dir = "test/help_test" +-main = "help_test.f90" ++[build] ++auto-tests = false |