Commit 797b3675 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#1382 Yaml: try a new image to see if the tests now pass (third party...

#1382 Yaml: try a new image to see if the tests now pass (third party libraries were updated: there was a gfortran / Mumps issue that is normally solved in latest Petsc).
parent 1c3f191c
......@@ -9,50 +9,17 @@ stages:
.build_template: &build_template
stage: stage1
image: registry.gitlab.inria.fr/morefem/thirdpartycompilationfactory/${OS}-${COMPILER}-${MODE}
image: registry.gitlab.inria.fr/morefem/thirdpartycompilationfactory/${OS}-${COMPILER}-${MODE}:v19.09
cache:
key: "cache_${CI_COMMIT_REF_SLUG}_${OS}-${COMPILER}-${MODE}-${LIB_NATURE}-${IS_ONLY_ONE_LIB}"
key: "${CI_COMMIT_REF_SLUG}_${OS}-${COMPILER}-${MODE}-${LIB_NATURE}-UniqueLib_${IS_ONLY_ONE_LIB}"
untracked: true
paths:
- build
artifacts:
name: "artifact_${CI_COMMIT_REF_SLUG}_${OS}-${COMPILER}-${MODE}-${LIB_NATURE}-${IS_ONLY_ONE_LIB}"
expire_in: 8 hours
paths:
- build/compilation.log
script:
- mkdir -p build
- cd build && python ../cmake/Scripts/configure_cmake.py --cache_file=../cmake/PreCache/linux.cmake --cmake_args="-G Ninja" --third_party_directory=/opt --mode=${MODE} --library_type=${LIB_NATURE} --morefem_as_single_library=${IS_ONLY_ONE_LIB}
- ninja |& tee compilation.log
- ninja test # as artifact are limited in size, I can't unfortunately use a separate stage...
.run_doxygen_template: &run_doxygen_template
stage: stage1
image: alpine:latest
artifacts:
name: "doxygen"
expire_in: 2 hours
paths:
- Documentation/Doxygen/${OUTPUT_FILE}
before_script:
- apk add --update doxygen graphviz && rm -rf /var/cache/apk/*
script:
- cd Documentation/Doxygen
- doxygen ${DOX}
.check_warning_template: &check_warning_template
stage: stage2
image: alpine:latest
before_script:
- apk add --update python python-dev && rm -rf /var/cache/apk/*
# dependencies: in the instantiations!
script:
- python Scripts/Tools/find_warning_in_compilation_log.py --log build/compilation.log
allow_failure: true
- mkdir -p build
- cd build && python ../cmake/Scripts/configure_cmake.py --cache_file=../cmake/PreCache/linux.cmake --cmake_args="-G Ninja" --install_directory=/opt --third_party_directory=/opt --mode=${MODE} --library_type=${LIB_NATURE} --morefem_as_single_library=${IS_ONLY_ONE_LIB}
- ninja |& tee compilation.log
- ninja test # as asrtifact are limited in size, I can;'t unfortunately use a separate stage...
# .test_template: &test_template
# stage: stage2
......@@ -65,50 +32,47 @@ stages:
# script:
# - cd build && ctest
build-Ubuntu-gcc-debug-shared-several_libs:
<<: *build_template
variables:
OS: "ubuntu"
COMPILER: "gcc"
MODE: "debug"
LIB_NATURE: "shared"
IS_ONLY_ONE_LIB: "False"
check_warning_Ubuntu-gcc-debug-shared-several_libs:
<<: *check_warning_template
dependencies:
- build-Ubuntu-gcc-debug-shared-several_libs
variables:
OS: "ubuntu"
COMPILER: "gcc"
MODE: "debug"
LIB_NATURE: "shared"
IS_ONLY_ONE_LIB: "False"
build-Ubuntu-gcc-release-static-one_lib:
<<: *build_template
variables:
OS: "ubuntu"
COMPILER: "gcc"
MODE: "release"
LIB_NATURE: "static"
IS_ONLY_ONE_LIB: "True"
check_warning_Ubuntu-gcc-release-static-one_lib:
<<: *check_warning_template
dependencies:
- build-Ubuntu-gcc-release-static-one_lib
variables:
OS: "ubuntu"
COMPILER: "gcc"
MODE: "release"
LIB_NATURE: "static"
IS_ONLY_ONE_LIB: "True"
#
# build-Ubuntu-gcc-debug-shared-several_libs:
# <<: *build_template
# variables:
# OS: "ubuntu"
# COMPILER: "gcc"
# MODE: "debug"
# LIB_NATURE: "shared"
# IS_ONLY_ONE_LIB: "False"
# build-Ubuntu-gcc-release-static-unique_lib:
# <<: *build_template
# variables:
# OS: "ubuntu"
# COMPILER: "gcc"
# MODE: "release"
# LIB_NATURE: "static"
# IS_ONLY_ONE_LIB: "True"
#
#
# build-Fedora-gcc-debug-static-one_lib:
# <<: *build_template
# variables:
# OS: "fedora"
# COMPILER: "gcc"
# MODE: "debug"
# LIB_NATURE: "static"
# IS_ONLY_ONE_LIB: "True"
#
# build-Fedora-gcc-release-shared-several_libs:
# <<: *build_template
# variables:
# OS: "fedora"
# COMPILER: "gcc"
# MODE: "release"
# LIB_NATURE: "shared"
# IS_ONLY_ONE_LIB: "False"
#
build-Fedora-clang-debug-static-one_lib:
......@@ -119,70 +83,45 @@ build-Fedora-clang-debug-static-one_lib:
MODE: "debug"
LIB_NATURE: "static"
IS_ONLY_ONE_LIB: "True"
check_warning_Fedora-clang-debug-static-one_lib:
<<: *check_warning_template
dependencies:
- build-Fedora-clang-debug-static-one_lib
variables:
OS: "fedora"
COMPILER: "clang"
MODE: "debug"
LIB_NATURE: "static"
IS_ONLY_ONE_LIB: "True"
build-Fedora-clang-release-shared-one_lib:
<<: *build_template
variables:
OS: "fedora"
COMPILER: "clang"
MODE: "release"
LIB_NATURE: "shared"
IS_ONLY_ONE_LIB: "False"
check_warning_Fedora-clang-release-shared-one_lib:
<<: *check_warning_template
dependencies:
- build-Fedora-clang-release-shared-one_lib
variables:
OS: "fedora"
COMPILER: "clang"
MODE: "release"
LIB_NATURE: "shared"
IS_ONLY_ONE_LIB: "False"
build-Fedora-gcc-debug-static-one_lib:
<<: *build_template
variables:
OS: "fedora"
COMPILER: "gcc"
MODE: "debug"
LIB_NATURE: "static"
IS_ONLY_ONE_LIB: "True"
check_warning_Fedora-gcc-debug-static-one_lib:
<<: *check_warning_template
dependencies:
- build-Fedora-gcc-debug-static-one_lib
variables:
OS: "fedora"
COMPILER: "gcc"
MODE: "debug"
LIB_NATURE: "static"
IS_ONLY_ONE_LIB: "True"
# build-Fedora-clang-release-shared-several_libs:
# <<: *build_template
# variables:
# OS: "fedora"
# COMPILER: "clang"
# MODE: "release"
# LIB_NATURE: "shared"
# IS_ONLY_ONE_LIB: "False"
complete_doxygen:
<<: *run_doxygen_template
variables:
DOX: "complete_dev_guide.dox"
OUTPUT_FILE: "complete.log"
# build-macos-clang-debug-shared-several_libs:
# <<: *build_template
# tags:
# - macos, debug, shared, several_libs
# variables:
# OS: "macos"
# COMPILER: "clang"
# MODE: "debug"
# LIB_NATURE: "shared"
# IS_ONLY_ONE_LIB: "False"
#
# doxygen:
# stage: stage1
#
# cache:
# key: "$CI_COMMIT_REF_SLUG_doxygen"
# untracked: true
# paths:
# - Documentation/Doxygen
# tags:
# - Ubuntu
# - debug
# script:
# - cd Documentation/Doxygen
# - doxygen complete_dev_guide.dox
# Pages doesn't work as invoked from a subgroup (not supported yet in gitlab)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment