Skip to content

Commit

Permalink
feat: Add gitlab-ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogarfe committed Jan 25, 2024
1 parent 4095b9b commit 3bbb4fe
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
variables:
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"

image: maven:3.8.4-jdk-11

stages:
- build
- test

cache:
key: "${CI_JOB_NAME}"
paths:
- .m2/repository/
- target/

build:
stage: build
script:
- mvn clean compile

test:
stage: test
script:
- mvn verify -Pall-tests
artifacts:
when: always
reports:
junit:
- target/surefire-reports/TEST-*.xml
- target/failsafe-reports/TEST-*.xml

0 comments on commit 3bbb4fe

Please sign in to comment.