Skip to content
Snippets Groups Projects
Commit 5354a6e4 authored by Michal Badin's avatar Michal Badin
Browse files

feat(CI/DC): Spited tests into unit test substage and integration test substage

parent 53db3a26
No related branches found
No related tags found
2 merge requests!54Merge develop into main,!45M2 feedback - string size restriction, CI/CD and DomainObject
Pipeline #
...@@ -14,14 +14,36 @@ default: ...@@ -14,14 +14,36 @@ default:
stages: stages:
- build - build
- test - tests
build: build:
stage: build stage: build
script: script:
- echo "We are building your project"
- mvn clean install $MAVEN_CLI_OPTS -DskipTests - mvn clean install $MAVEN_CLI_OPTS -DskipTests
test: unit_test:
stage: test stage: tests
script: script:
- mvn test $MAVEN_CLI_OPTS - echo "We are testing your project build with unit tests"
\ No newline at end of file - mvn test $MAVEN_CLI_OPTS
artifacts:
expire_in: 10 min
paths:
- "*/target/surefire-reports/*"
reports:
junit:
- "*/target/surefire-reports/*.xml"
integration_test:
stage: tests
script:
- echo "We are testing your project build with integration tests"
- mvn verify $MAVEN_CLI_OPTS
artifacts:
expire_in: 10 min
paths:
- "*/target/failsafe-reports/*"
reports:
junit:
- "*/target/failsafe-reports/*.xml"
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