Commit bfe9ccf8 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#1360 Yaml: under development.

parent b0259819
......@@ -9,17 +9,34 @@ stages:
.build_template: &build_template
stage: stage1
image: registry.gitlab.inria.fr/morefem/thirdpartycompilationfactory/${OS}-${COMPILER}-${MODE}:latest
image: registry.gitlab.inria.fr/morefem/thirdpartycompilationfactory/${OS}-${COMPILER}-${MODE}:v19.09
cache:
key: "${CI_COMMIT_REF_SLUG}_${OS}-${COMPILER}-${MODE}-${LIB_NATURE}-UniqueLib_${IS_ONLY_ONE_LIB}"
untracked: true
paths:
- build
artifacts:
name: "${CI_COMMIT_REF_SLUG}_${OS}-${COMPILER}-${MODE}-${LIB_NATURE}-UniqueLib_${IS_ONLY_ONE_LIB}"
untracked: true
expire_in: 2 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" --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...
.check_warning_template: &check_warning_template
stage: stage2
# dependencies: in the instantiations!
script:
- 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
- ninja test # as asrtifact are limited in size, I can;'t unfortunately use a separate stage...
- python Scripts/Tools/find_warning_in_compilation_log.py --log build/compilation.log
allow_failure: true
# .test_template: &test_template
# stage: stage2
......@@ -32,15 +49,15 @@ 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"
#
# 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:
......@@ -53,16 +70,16 @@ build-Ubuntu-gcc-debug-shared-several_libs:
# 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-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
......@@ -84,6 +101,17 @@ build-Fedora-clang-debug-static-one_lib:
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-several_libs:
......
Supports Markdown
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