Add pipeline declaration
This commit is contained in:
parent
b8b0a56cb1
commit
0f3e789b6f
|
@ -16,18 +16,31 @@ cache:
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
stage: compile
|
stage: compile
|
||||||
|
image: maven:3.8.6-openjdk-18
|
||||||
script:
|
script:
|
||||||
- *setup-mvn
|
- *setup-mvn
|
||||||
- echo "Compiling the application"
|
- ./mvnw clean compile
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
|
image: markhobson/maven-chrome:jdk-18
|
||||||
script:
|
script:
|
||||||
- *setup-mvn
|
- *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:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
image: maven:3.8.6-openjdk-18
|
||||||
script:
|
script:
|
||||||
- *setup-mvn
|
- *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