You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
675 B

11 months ago
  1. include:
  2. - template: SAST.gitlab-ci.yml
  3. default:
  4. tags: ['docker-exec']
  5. image: maven:3.9.6-eclipse-temurin-21-jammy
  6. variables:
  7. MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
  8. MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dmaven.artifact.threads=50"
  9. cache:
  10. paths:
  11. - .m2/repository/
  12. junit tests:
  13. stage: test
  14. script:
  15. - mvn test
  16. allow_failure: false
  17. artifacts:
  18. expire_in: 1 week
  19. reports:
  20. junit:
  21. - target/surefire-reports/TEST-*.xml
  22. script tests:
  23. stage: test
  24. script:
  25. - ./build-project.sh
  26. allow_failure: false
  27. artifacts:
  28. expire_in: 1 week
  29. reports:
  30. junit:
  31. - target/surefire-reports/TEST-*.xml