Commit a495623f authored by Maximilian Dolling's avatar Maximilian Dolling

test

parent 859c8cdc
......@@ -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
......
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