Commit 8936bf9a authored by Maximilian Dolling's avatar Maximilian Dolling

test

parent df350fca
......@@ -117,9 +117,9 @@ test:dev:
- cp -r "$CI_PROJECT_DIR" /repo
- rm -rf /repo/meta
- docker-entrypoint.sh --test
- ls -lisa /repo/meta
- IS_CHK_SUM=$(sha512sum /repo/meta/ci-services-report.md | awk '{ print $1 }')
- PASS_CHK_SUM=$(sha512sum /repo/test/test_report.md | awk '{ print $1 }')
- 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"
......@@ -134,8 +134,8 @@ test:dev:
- "test/**/*"
artifacts:
paths:
- /repo/meta
- /repo/test
- meta
- test
when: on_failure
expire_in: 1 day
......@@ -152,13 +152,12 @@ test:production:
- cp -r "$CI_PROJECT_DIR" /repo
- rm -rf /repo/meta
- docker-entrypoint.sh --test
- IS_CHK_SUM=$(sha512sum /repo/meta/ci-services-report.md | awk '{ print $1 }')
- PASS_CHK_SUM=$(sha512sum /repo/test/test_report.md | awk '{ print $1 }')
- 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"
echo $IS_CHK_SUM
echo $PASS_CHK_SUM
exit 1
fi
only:
......
Markdown is supported
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