Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 5b26b422 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Split the preliminary checks for better visualization of the issue

parent eec0eccb
No related branches found
No related tags found
1 merge request!311CI: Split the preliminary checks
......@@ -5,12 +5,22 @@ stages:
- analyse
- deploy
# git config --global ahev been added to get around the issue related in
# https://github.com/actions/checkout/issues/760 for github
# Does not seem to be fixed for gitlab-runner yet
before_script:
- git config --global --add safe.directory $CI_PROJECT_DIR
- git config --global --add safe.directory $CI_PROJECT_DIR/cmake_modules/morse_cmake
- git config --global --add safe.directory $CI_PROJECT_DIR/coreblas/hmat-oss
- git config --global --add safe.directory $CI_PROJECT_DIR/hqr
- git config --global --add safe.directory $CI_PROJECT_DIR/testing/test_fembem
- env 2>&1 > env.log
- git submodule update --init --recursive
- source .gitlab-ci-env.sh $SIMU
- mkdir -p build-$VERSION
include:
- .gitlab/preliminary.yml
- .gitlab/common.yml
- .gitlab/build.yml
- .gitlab/test_starpu.yml
......
......@@ -51,28 +51,46 @@ check_draft()
return 0
}
echo "----------------------------------------------------"
check_rebase
echo ""
echo "----------------------------------------------------"
check_draft
check_header()
{
echo " Checking file headers: "
TOOLSDIR=$(dirname $0)/../tools
echo ""
echo "----------------------------------------------------"
echo " Checking file headers: "
TOOLSDIR=$(dirname $0)/../tools
$TOOLSDIR/check_header.sh
rc=$?
if [ $rc -eq 0 ]
then
echo "Check header: SUCCESS"
else
echo "Check header: FAILED"
success=0
fi
}
$TOOLSDIR/check_header.sh
rc=$?
if [ $rc -eq 0 ]
if [ $# -lt 1 ]
then
echo "Check header: SUCCESS"
else
echo "Check header: FAILED"
success=0
echo "Usage: $0 [rebase|draft|header]"
exit 1
fi
echo ""
echo "----------------------------------------------------"
case $1 in
rebase)
check_rebase
;;
draft)
check_draft
;;
header)
check_header
;;
*)
echo "Usage: $0 [rebase|draft|header]"
exit 1
;;
esac
if [ $success -eq 0 ]
then
exit 1
......
......@@ -21,14 +21,6 @@
except:
- schedules
preliminary_checks:
image: registry.gitlab.inria.fr/solverstack/docker/distrib
stage: .pre
script:
- .gitlab/check_ci.sh
only:
- merge_requests
.build_script_template:
extends: .only-branches
stage: build
......
#
# This file list the preliminary checks done before trying to compile
#
---
preliminary_checks:
image: registry.gitlab.inria.fr/solverstack/docker/distrib
stage: .pre
parallel:
matrix:
- TEST: [rebase, draft, header]
script:
- .gitlab/check_ci.sh $TEST
only:
- merge_requests
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