Skip to content
Snippets Groups Projects
Commit 97e38865 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Update CI scripts.

parent 4f33190d
Branches m300488/build-fixups
No related tags found
2 merge requests!34Version 2.2.0,!16Remove Fortran interface files from the repo
Pipeline #25306 passed
......@@ -15,12 +15,18 @@ find src app \
-name '*.h' -o -name '*.hpp' -o -name '*.c' -o -name '*.cpp' | \
xargs -n 1 -P 8 clang-format --Werror --dry-run --verbose
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
enable_maintainer_mode='no'
if test ! -f "${top_srcdir}/configure"; then
"${top_srcdir}/autogen.sh"
# If there is no configure script, there are, most probably, no Fortran
# interface files, which are generated in the maintainer mode only:
enable_maintainer_mode='yes'
fi
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-cf-interface \
--enable-iso-c-interface \
--enable-maintainer-mode="${enable_maintainer_mode}" \
--enable-mpi \
--enable-option-checking=fatal \
--with-eccodes="${ECCODES_ROOT}" \
......
......@@ -12,7 +12,7 @@ init_nag626223
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
# Create a distribution file with minimalistic configuration:
"${top_srcdir}/configure"
"${top_srcdir}/configure" --enable-maintainer-mode
make -j8 dist
# Create a subdirectory for further testing and switch to it:
......
......@@ -9,6 +9,13 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_nv2130
enable_maintainer_mode='no'
if test ! -f "${top_srcdir}/configure"; then
# If there is no configure script, there are, most probably, no Fortran
# interface files, which are generated in the maintainer mode only:
enable_maintainer_mode='yes'
fi
# We want to check with the Debian version of Libtool, which is patched to avoid
# overlinking:
( export PATH="/usr/bin:${PATH-}"
......@@ -18,9 +25,9 @@ init_nv2130
"${top_srcdir}/autogen.sh" )
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-cf-interface \
--enable-iso-c-interface \
--enable-maintainer-mode="${enable_maintainer_mode}" \
--enable-mpi \
--enable-option-checking=fatal \
--with-eccodes="${ECCODES_ROOT}" \
......
......@@ -18,7 +18,13 @@ if test "x${PE_NETCDF_MODULE_NAME}" = 'xcray-netcdf'; then
esac
fi
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
enable_maintainer_mode='no'
if test ! -f "${top_srcdir}/configure"; then
"${top_srcdir}/autogen.sh"
# If there is no configure script, there are, most probably, no Fortran
# interface files, which are generated in the maintainer mode only:
enable_maintainer_mode='yes'
fi
# The configure script does not check the 'lib64' subdirectory, therefore we
# run it with '--with-eccodes' and the following flags. Note that fixing this
......@@ -31,9 +37,9 @@ CPPFLAGS="-I${ECCODES_ROOT}/include"
LDFLAGS="-L${ECCODES_ROOT}/lib64"
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-cf-interface \
--enable-iso-c-interface \
--enable-maintainer-mode="${enable_maintainer_mode}" \
--enable-mpi \
--enable-option-checking=fatal \
--with-eccodes \
......
......@@ -18,7 +18,13 @@ if test "x${PE_NETCDF_MODULE_NAME}" = 'xcray-netcdf'; then
esac
fi
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
enable_maintainer_mode='no'
if test ! -f "${top_srcdir}/configure"; then
"${top_srcdir}/autogen.sh"
# If there is no configure script, there are, most probably, no Fortran
# interface files, which are generated in the maintainer mode only:
enable_maintainer_mode='yes'
fi
# The configure script does not check the 'lib64' subdirectory, therefore we
# run it with '--with-eccodes' and the following flags. Note that fixing this
......@@ -31,9 +37,9 @@ CPPFLAGS="-I${ECCODES_ROOT}/include"
LDFLAGS="-L${ECCODES_ROOT}/lib64"
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-cf-interface \
--enable-iso-c-interface \
--enable-maintainer-mode="${enable_maintainer_mode}" \
--enable-mpi \
--enable-option-checking=fatal \
--with-eccodes \
......
......@@ -9,7 +9,13 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_gcc1120
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
enable_maintainer_mode='no'
if test ! -f "${top_srcdir}/configure"; then
"${top_srcdir}/autogen.sh"
# If there is no configure script, there are, most probably, no Fortran
# interface files, which are generated in the maintainer mode only:
enable_maintainer_mode='yes'
fi
# The configure script does not check the 'lib64' subdirectory, therefore we
# run it with '--with-eccodes' and the following flags. Note that fixing this
......@@ -26,8 +32,8 @@ LDFLAGS="-L${ECCODES_ROOT}/lib64"
# 'check_all_tests_passed' that we run at the end makes sure that the options
# have been enabled and the corresponding tests have not been skipped.
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-iso-c-interface \
--enable-maintainer-mode="${enable_maintainer_mode}" \
--enable-mpi \
--enable-option-checking=fatal \
--with-eccodes \
......
......@@ -9,7 +9,13 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_intelclassic202150
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
enable_maintainer_mode='no'
if test ! -f "${top_srcdir}/configure"; then
"${top_srcdir}/autogen.sh"
# If there is no configure script, there are, most probably, no Fortran
# interface files, which are generated in the maintainer mode only:
enable_maintainer_mode='yes'
fi
# Create a subdirectory for building and switch to it:
mkdir build && cd build
......@@ -25,9 +31,9 @@ CPPFLAGS="-I${ECCODES_ROOT}/include"
LDFLAGS="-L${ECCODES_ROOT}/lib64"
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-cf-interface \
--enable-iso-c-interface \
--enable-maintainer-mode="${enable_maintainer_mode}" \
--enable-mpi \
--enable-option-checking=fatal \
--with-eccodes \
......@@ -46,6 +52,10 @@ make -j8 check | tee tests/test-suite.log
check_all_tests_passed tests/test-suite.log
make -j8 distclean
if test "x${enable_maintainer_mode}" = 'xyes'; then
make -j8 maintainer-clean
else
make -j8 distclean
fi
check_no_files_in_cwd
......@@ -14,7 +14,13 @@ init_gcc1120
CFLAGS='-g -gdwarf-4 -march=native -mpc64 -O2'
FCFLAGS='-fmodule-private -fimplicit-none -fmax-identifier-length=63 -Wall -Wcharacter-truncation -Wconversion -Wunderflow -Wunused-parameter -Wno-surprising -fall-intrinsics -g -march=native -mpc64 -fbacktrace -fbounds-check -fstack-protector-all -finit-real=nan -finit-integer=-2147483648 -finit-character=127 -O2 -std=f2008'
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
if test ! -f "${top_srcdir}/configure"; then
"${top_srcdir}/autogen.sh"
# If there is no configure script, there are, most probably, no Fortran
# interface files, which are generated in the maintainer mode only. Therefore,
# we have to generate them before testing:
"${top_srcdir}/configure" --enable-maintainer-mode && make -C src mo_cdi.f90 && make distclean
fi
"${top_srcdir}/configure" \
--disable-cdi-app \
......
......@@ -94,7 +94,7 @@ switch_for_module ()
#
init_env ()
{
:
switch_for_module ruby/3.0.2-gcc-11.2.0
}
#
......
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