Commit cb271a5e authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added backend test in CI

parent e6e3e0ae
Loading
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -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