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: ...@@ -5,12 +5,22 @@ stages:
- analyse - analyse
- deploy - 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: 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 - git submodule update --init --recursive
- source .gitlab-ci-env.sh $SIMU - source .gitlab-ci-env.sh $SIMU
- mkdir -p build-$VERSION - mkdir -p build-$VERSION
include: include:
- .gitlab/preliminary.yml
- .gitlab/common.yml - .gitlab/common.yml
- .gitlab/build.yml - .gitlab/build.yml
- .gitlab/test_starpu.yml - .gitlab/test_starpu.yml
......
...@@ -51,28 +51,46 @@ check_draft() ...@@ -51,28 +51,46 @@ check_draft()
return 0 return 0
} }
echo "----------------------------------------------------" check_header()
check_rebase {
echo " Checking file headers: "
echo "" TOOLSDIR=$(dirname $0)/../tools
echo "----------------------------------------------------"
check_draft
echo "" $TOOLSDIR/check_header.sh
echo "----------------------------------------------------" rc=$?
echo " Checking file headers: " if [ $rc -eq 0 ]
TOOLSDIR=$(dirname $0)/../tools then
echo "Check header: SUCCESS"
else
echo "Check header: FAILED"
success=0
fi
}
$TOOLSDIR/check_header.sh if [ $# -lt 1 ]
rc=$?
if [ $rc -eq 0 ]
then then
echo "Check header: SUCCESS" echo "Usage: $0 [rebase|draft|header]"
else exit 1
echo "Check header: FAILED"
success=0
fi 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 ] if [ $success -eq 0 ]
then then
exit 1 exit 1
......
...@@ -21,14 +21,6 @@ ...@@ -21,14 +21,6 @@
except: except:
- schedules - schedules
preliminary_checks:
image: registry.gitlab.inria.fr/solverstack/docker/distrib
stage: .pre
script:
- .gitlab/check_ci.sh
only:
- merge_requests
.build_script_template: .build_script_template:
extends: .only-branches extends: .only-branches
stage: build 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