Add pipeline declaration
This commit is contained in:
parent
b8b0a56cb1
commit
0f3e789b6f
1 changed files with 16 additions and 3 deletions
|
@ -16,18 +16,31 @@ cache:
|
|||
|
||||
compile:
|
||||
stage: compile
|
||||
image: maven:3.8.6-openjdk-18
|
||||
script:
|
||||
- *setup-mvn
|
||||
- echo "Compiling the application"
|
||||
- ./mvnw clean compile
|
||||
|
||||
test:
|
||||
stage: test
|
||||
image: markhobson/maven-chrome:jdk-18
|
||||
script:
|
||||
- *setup-mvn
|
||||
- echo "Testing the application. This step produces test reports artifacts"
|
||||
- ./mvnw test
|
||||
artifacts:
|
||||
name: "Surefire test reports from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
|
||||
expire_in: 1 day
|
||||
reports:
|
||||
junit:
|
||||
- "**/target/surefire-reports/TEST-*.xml"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
image: maven:3.8.6-openjdk-18
|
||||
script:
|
||||
- *setup-mvn
|
||||
- echo "Building the application. This step produces jar artifacts"
|
||||
- ./mvnw package -DskipTests
|
||||
artifacts:
|
||||
name: "Maven artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
|
||||
paths:
|
||||
- "**/target/*.jar"
|
||||
|
|
Loading…
Reference in a new issue