diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 37384dc2cb404401dabf367624472eaf1801e223..cb647ba20be6884e85c759a987a052982196a3fd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,19 @@ stages: - test - dockerize -deploy: +test_backend: + stage: test + tags: + - docker + script: + - cd vospace-ui-backend + - mvn clean test + - awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print "coverage=" 100*covered/instructions }' target/site/jacoco/jacoco.csv + coverage: '/coverage=\d+\.\d+/' + only: + - master + +dockerize: stage: dockerize tags: - shell