diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1f33738b3eaae1d1942e0d1c0703a297052faa64..cb282f6d42063de00c779dc53ba1f0ecb4d73424 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,14 +14,36 @@ default: stages: - build - - test + - tests build: stage: build script: + - echo "We are building your project" - mvn clean install $MAVEN_CLI_OPTS -DskipTests -test: - stage: test +unit_test: + stage: tests script: - - mvn test $MAVEN_CLI_OPTS \ No newline at end of file + - echo "We are testing your project build with unit tests" + - 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"