diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3e7c8342a608a78f9d7d390ae21cfcf21ba3a104..0216c09272feb5acf9f0c938724049ef0b2e33cc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ stages: - build - test + - deploy # Global runner/docker image definition image: openjdk:8 @@ -32,3 +33,18 @@ tests: expire_in: 10d +# Run the main and show the tests results +pages: + stage: deploy + tags: + - docker + dependencies: + - test + script: + - ./gradlew run + - mkdir -p public/Tests_Results && cp -r build/reports/tests/test/* public/Tests_Results/ + - mkdir -p public/Jacoco && cp -r build/jacocoHtml/* public/Jacoco/ + artifacts: + paths: + - public +