Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YAC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dkrz-sw
YAC
Commits
ea2cd33f
Commit
ea2cd33f
authored
5 months ago
by
Nils-Arne Dreier
Committed by
Moritz Hanke
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Check untracked
parent
6a05c177
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
.gitlab-ci.yml
+31
-0
31 additions, 0 deletions
.gitlab-ci.yml
with
34 additions
and
0 deletions
.gitignore
+
3
−
0
View file @
ea2cd33f
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
31
−
0
View file @
ea2cd33f
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment