Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
id2
S
Software
S
services
FAIR
Software Quality Assurance
Commits
a495623f
Commit
a495623f
authored
May 20, 2020
by
Maximilian Dolling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
859c8cdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
36 deletions
+36
-36
.gitlab-ci.yml
.gitlab-ci.yml
+36
-36
No files found.
.gitlab-ci.yml
View file @
a495623f
...
...
@@ -5,7 +5,7 @@
stages
:
-
build-deploy:dep
-
build-deploy
#
- test
-
test
-
ci-services
-
reuse
...
...
@@ -113,41 +113,41 @@ test:unittest:
-
"
**/*.py"
-
"
**/*.yml"
test:dev:
stage
:
test
image
:
name
:
"
${CI_REGISTRY_IMAGE}/$DOCKER_DST_IMAGE_NAME:latest-dev"
entrypoint
:
[
"
"
]
tags
:
-
ci-services
dependencies
:
-
build-deploy:dev
script
:
-
cp -r "$CI_PROJECT_DIR" /repo
-
rm -rf /repo/meta
-
docker-entrypoint.sh --test
-
cp -rT /repo "$CI_PROJECT_DIR"
-
IS_CHK_SUM=$(sha512sum meta/ci-services-report.md | awk '{ print $1 }')
-
PASS_CHK_SUM=$(sha512sum test/test_report.md | awk '{ print $1 }')
-
>
if [ "$IS_CHK_SUM" != "$PASS_CHK_SUM" ]; then
echo "Generated report does not equal the test template"
exit 1
fi
except
:
-
master
only
:
changes
:
-
"
build/**/*"
-
"
src/**/*"
-
"
test/**/*"
-
"
**/*.yml"
artifacts
:
paths
:
-
meta
-
test
when
:
on_failure
expire_in
:
1 day
#
test:dev:
#
stage: test
#
image:
#
name: "${CI_REGISTRY_IMAGE}/$DOCKER_DST_IMAGE_NAME:latest-dev"
#
entrypoint: [""]
#
tags:
#
- ci-services
#
dependencies:
#
- build-deploy:dev
#
script:
#
- cp -r "$CI_PROJECT_DIR" /repo
#
- rm -rf /repo/meta
#
- docker-entrypoint.sh --test
#
- cp -rT /repo "$CI_PROJECT_DIR"
#
- IS_CHK_SUM=$(sha512sum meta/ci-services-report.md | awk '{ print $1 }')
#
- PASS_CHK_SUM=$(sha512sum test/test_report.md | awk '{ print $1 }')
#
- >
#
if [ "$IS_CHK_SUM" != "$PASS_CHK_SUM" ]; then
#
echo "Generated report does not equal the test template"
#
exit 1
#
fi
#
except:
#
- master
#
only:
#
changes:
#
- "build/**/*"
#
- "src/**/*"
#
- "test/**/*"
#
- "**/*.yml"
#
artifacts:
#
paths:
#
- meta
#
- test
#
when: on_failure
#
expire_in: 1 day
test:production:
stage
:
test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment