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

CI: move the generator-specific part to a separate job

parent d2c1cd82
No related branches found
No related tags found
1 merge request!54CI: test with Ninja
...@@ -205,19 +205,25 @@ include: ...@@ -205,19 +205,25 @@ include:
extends: .common extends: .common
variables: variables:
CMAKE_EXTRA_ARGS: -DMTIME_ENABLE_FORTRAN_HL:BOOL=OFF CMAKE_EXTRA_ARGS: -DMTIME_ENABLE_FORTRAN_HL:BOOL=OFF
MAKEFLAGS: --jobs=${JOB_COUNT} VERBOSE=1
# Cmake initializes Fortran compiler flags from FFLAGS: # Cmake initializes Fortran compiler flags from FFLAGS:
FFLAGS: ${FCFLAGS} FFLAGS: ${FCFLAGS}
script: script:
- mkdir build && cd build - mkdir build && cd build
- > - >
cmake .. cmake ..
-G"${CMAKE_GENERATOR}"
-DCheck_ROOT="${LIBCHECK_ROOT}" -DCheck_ROOT="${LIBCHECK_ROOT}"
${CMAKE_EXTRA_ARGS} ${CMAKE_EXTRA_ARGS}
- make 2> >(tee ${WARNINGS_FILE}) - ${MAKE_CMD} 2> >(tee ${WARNINGS_FILE})
- make test - ${MAKE_CMD} test
- !reference [.common, script] - !reference [.common, script]
.common_cmake_makefiles:
extends: .common_cmake
variables:
CMAKE_GENERATOR: Unix Makefiles
MAKE_CMD: make --jobs=${JOB_COUNT} VERBOSE=1
.check_gcc: .check_gcc:
variables: variables:
CFLAGS: -g -O2 -Wall -Wextra -pedantic CFLAGS: -g -O2 -Wall -Wextra -pedantic
...@@ -256,12 +262,12 @@ Check with GCC 11.2.0 (Autotools): ...@@ -256,12 +262,12 @@ Check with GCC 11.2.0 (Autotools):
cache: cache:
policy: pull-push policy: pull-push
Check with GCC 11.2.0 (CMake): Check with GCC 11.2.0 (CMake, Unix Makefiles):
extends: extends:
- .common_cmake - .common_cmake_makefiles
- .check_gcc - .check_gcc
before_script: before_script:
- !reference [.common_cmake, before_script] - !reference [.common_cmake_makefiles, before_script]
- !reference [.check_gcc, before_script] - !reference [.check_gcc, before_script]
Check with Intel 2021.5.0 (Autotools): Check with Intel 2021.5.0 (Autotools):
...@@ -275,12 +281,12 @@ Check with Intel 2021.5.0 (Autotools): ...@@ -275,12 +281,12 @@ Check with Intel 2021.5.0 (Autotools):
- !reference [.common_autotools, before_script] - !reference [.common_autotools, before_script]
- !reference [.check_intel, before_script] - !reference [.check_intel, before_script]
Check with Intel 2021.5.0 (CMake): Check with Intel 2021.5.0 (CMake, Unix Makefiles):
extends: extends:
- .common_cmake - .common_cmake_makefiles
- .check_intel - .check_intel
before_script: before_script:
- !reference [.common_cmake, before_script] - !reference [.common_cmake_makefiles, before_script]
- !reference [.check_intel, before_script] - !reference [.check_intel, before_script]
Check with NVHPC 22.5 (Autotools): Check with NVHPC 22.5 (Autotools):
...@@ -293,12 +299,12 @@ Check with NVHPC 22.5 (Autotools): ...@@ -293,12 +299,12 @@ Check with NVHPC 22.5 (Autotools):
# Libtool does not know about NVHPC and its PIC flag: # Libtool does not know about NVHPC and its PIC flag:
- export FCFLAGS="$FCFLAGS -fpic" - export FCFLAGS="$FCFLAGS -fpic"
Check with NVHPC 22.5 (CMake): Check with NVHPC 22.5 (CMake, Unix Makefiles):
extends: extends:
- .common_cmake - .common_cmake_makefiles
- .check_nvhpc - .check_nvhpc
before_script: before_script:
- !reference [.common_cmake, before_script] - !reference [.common_cmake_makefiles, before_script]
- !reference [.check_nvhpc, before_script] - !reference [.check_nvhpc, before_script]
Check with NAG 7.1.7114 (Autotools): Check with NAG 7.1.7114 (Autotools):
...@@ -311,12 +317,12 @@ Check with NAG 7.1.7114 (Autotools): ...@@ -311,12 +317,12 @@ Check with NAG 7.1.7114 (Autotools):
# nagfor is supposed to use non-default gcc: # nagfor is supposed to use non-default gcc:
- export FCFLAGS="-Wc=`which gcc` $FCFLAGS" - export FCFLAGS="-Wc=`which gcc` $FCFLAGS"
Check with NAG 7.1.7114 (CMake): Check with NAG 7.1.7114 (CMake, Unix Makefiles):
extends: extends:
- .common_cmake - .common_cmake_makefiles
- .check_nag - .check_nag
before_script: before_script:
- !reference [.common_cmake, before_script] - !reference [.common_cmake_makefiles, before_script]
- !reference [.check_nag, before_script] - !reference [.check_nag, before_script]
# nagfor is supposed to use non-default gcc: # nagfor is supposed to use non-default gcc:
- export FFLAGS="-Wc=`which gcc` $FFLAGS" - export FFLAGS="-Wc=`which gcc` $FFLAGS"
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