Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gaudi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaudi
Gaudi
Commits
dbd247e8
Commit
dbd247e8
authored
7 years ago
by
Marco Clemencic
Browse files
Options
Downloads
Patches
Plain Diff
Split test and check test results
to keep test artifacts for debugging
parent
a94fed47
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!350
Fixes to Gitlab-CI configuration
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-1
15 additions, 1 deletion
.gitlab-ci.yml
with
15 additions
and
1 deletion
.gitlab-ci.yml
+
15
−
1
View file @
dbd247e8
stages
:
-
build
-
test
-
check
-
deploy
before_script
:
...
...
@@ -57,13 +58,26 @@ test:
stage
:
test
script
:
-
find build -type f -exec touch -d $(date +@%s) \{} \;
-
make BUILDDIR=build test ARGS='-j4'
-
mkdir -p build/html
-
( make BUILDDIR=build test ARGS='-j4' || touch build/html/tests_failed ) | tee build/ctest.log
-
mv build/html test_report
-
mv build/ctest.log test_report
artifacts
:
paths
:
-
test_report
expire_in
:
1 week
test_report
:
stage
:
check
script
:
-
if [ -e test_report/tests_failed ] ; then
# this prints all lines starting with a white space after and including "The following tests...", excluding lines with "Not Run"
-
awk '/^[^[:space:]]/{do_print=0}; /The following tests FAILED:/{do_print=1}; do_print&&!/Not Run/{print}' test_report/ctest.log
-
exit
1
-
else
-
echo tests successful
-
fi
# see https://gitlab.cern.ch/gitlabci-examples/deploy_eos for the details
# of the configuration
deploy-doxygen
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment