Skip to content
Snippets Groups Projects
Commit ea2cd33f authored by Nils-Arne Dreier's avatar Nils-Arne Dreier Committed by Moritz Hanke
Browse files

Check untracked

parent 6a05c177
No related merge requests found
......@@ -49,6 +49,9 @@ config.status
/**/src/core/yac_core.h
/**/src/utils/yac_utils.h
# generated by ifort
*__genmod.f90
# Test stage files
/**/examples/**/*.nc
/**/examples/**/*.vtk
......
......@@ -29,6 +29,8 @@ workflow:
# - check_warning_*: checks output of test_* compiler outputs
# - fails if it contains warnings -> pipeline can still run
# successfully, but with warning
# - check_untracked: checks whether the builing and test adds
# files that are neither tracked nor stated in the .gitignore file
# document (all repositories):
# - generate html doxygen documentation
# - generate coverage reports (development repository only)
......@@ -100,6 +102,7 @@ include:
.levante_basic_environment: &levante_basic_environment
- module purge
- module load git
# We need the gcc module for the Intel tests to make icc work against the
# recommended installation/version of gcc. We do not need the gcc module for the
# GCC tests (OpenMPI compiler wrappers take the correct gcc/gfortran) but load
......@@ -281,6 +284,25 @@ include:
.check_warning_script: &check_warning_script
- awk "$AWK_SCRIPT" $CHECK_WARNINGS_FILE > awk.out
- "if [ -s awk.out ]; then cat awk.out; exit 166; fi"
- rm awk.out $CHECK_WARNINGS_FILE
.check_untracked: &check_untracked
- |
untracked_files=`git -C "$CI_PROJECT_DIR" ls-files --other --exclude-standard -x install_dir -x externals` || {
echo "ERROR: failed to get a list of untracked files in the main repository" >&2
exit 1
}
- |
if test -n "${untracked_files}"; then
cat >&2 <<_EOF
ERROR: the building process generated untracked files in the main repository:
${untracked_files}
Update '.gitignore' to ignore them.
_EOF
exit 1
fi
build_externals_levante_gcc:
extends:
......@@ -410,6 +432,7 @@ test_levante_gcc:
- make --output-sync=target check AM_COLOR_TESTS=no TESTS= 2> >(tee $CHECK_WARNINGS_FILE)
- make --silent --keep-going check
- *check_warning_script
- *check_untracked
artifacts:
when: on_failure
paths:
......@@ -450,6 +473,7 @@ test_levante_nvhpc:
- make --output-sync=target check AM_COLOR_TESTS=no TESTS= 2> >(tee $CHECK_WARNINGS_FILE)
- make --silent --keep-going check
- *check_warning_script
- *check_untracked
artifacts:
when: on_failure
paths:
......@@ -485,6 +509,7 @@ test_levante_nag:
- make --output-sync=target check AM_COLOR_TESTS=no TESTS= 2> >(tee $CHECK_WARNINGS_FILE)
- make --silent --keep-going check
- *check_warning_script
- *check_untracked
artifacts:
when: on_failure
paths:
......@@ -521,6 +546,7 @@ test_levante_intel:
- make --output-sync=target check AM_COLOR_TESTS=no TESTS= 2> >(tee $CHECK_WARNINGS_FILE)
- make --silent --keep-going check
- *check_warning_script
- *check_untracked
artifacts:
when: on_failure
paths:
......@@ -559,6 +585,7 @@ test_levante_gcc_long_double_64:
- make --output-sync=target check AM_COLOR_TESTS=no TESTS= 2> >(tee $CHECK_WARNINGS_FILE)
- make --silent --keep-going check
- *check_warning_script
- *check_untracked
artifacts:
when: on_failure
paths:
......@@ -592,6 +619,7 @@ test_levante_gcc_core_only:
- make --output-sync=target check AM_COLOR_TESTS=no TESTS= 2> >(tee $CHECK_WARNINGS_FILE)
- make --silent --keep-going check
- *check_warning_script
- *check_untracked
artifacts:
when: on_failure
paths:
......@@ -704,6 +732,7 @@ test_levante_gcc_disable_netcdf:
- make --output-sync=target check AM_COLOR_TESTS=no TESTS= 2> >(tee $CHECK_WARNINGS_FILE)
- make --silent --keep-going check
- *check_warning_script
- *check_untracked
artifacts:
when: on_failure
paths:
......@@ -744,6 +773,7 @@ test_levante_gcc_openmp:
- make --output-sync=target check AM_COLOR_TESTS=no TESTS= 2> >(tee $CHECK_WARNINGS_FILE)
- make --silent --keep-going check
- *check_warning_script
- *check_untracked
artifacts:
when: on_failure
paths:
......@@ -778,6 +808,7 @@ test_macos_gcc:
- make check AM_COLOR_TESTS=no TESTS= 2> >(tee $CHECK_WARNINGS_FILE)
- make --silent --keep-going check
- *check_warning_script
- *check_untracked
artifacts:
when: on_failure
paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment