Fix execution permissions of mvnw
This commit is contained in:
parent
9343437324
commit
255a163408
1 changed files with 0 additions and 7 deletions
|
@ -3,9 +3,6 @@ stages:
|
||||||
- test
|
- test
|
||||||
- build
|
- build
|
||||||
|
|
||||||
.setup-mvn: &setup-mvn
|
|
||||||
- chmod a+x mvnw
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
|
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
|
||||||
|
|
||||||
|
@ -18,14 +15,12 @@ compile:
|
||||||
stage: compile
|
stage: compile
|
||||||
image: maven:3.8.6-openjdk-18
|
image: maven:3.8.6-openjdk-18
|
||||||
script:
|
script:
|
||||||
- *setup-mvn
|
|
||||||
- ./mvnw clean compile
|
- ./mvnw clean compile
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
image: markhobson/maven-chrome:jdk-18
|
image: markhobson/maven-chrome:jdk-18
|
||||||
script:
|
script:
|
||||||
- *setup-mvn
|
|
||||||
- ./mvnw test
|
- ./mvnw test
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "Surefire test reports from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
|
name: "Surefire test reports from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
|
||||||
|
@ -38,7 +33,6 @@ check:
|
||||||
stage: build
|
stage: build
|
||||||
image: markhobson/maven-chrome:jdk-18
|
image: markhobson/maven-chrome:jdk-18
|
||||||
script:
|
script:
|
||||||
- *setup-mvn
|
|
||||||
- ./mvnw clean compile dependency-check:aggregate
|
- ./mvnw clean compile dependency-check:aggregate
|
||||||
- ./mvnw sonar:sonar -Dsonar.projectKey=$SONAR_PROJECT -Dsonar.projectName=$SONAR_PROJECT -Dsonar.host.url=$SONAR_URL -Dsonar.token=$SONAR_TOKEN
|
- ./mvnw sonar:sonar -Dsonar.projectKey=$SONAR_PROJECT -Dsonar.projectName=$SONAR_PROJECT -Dsonar.host.url=$SONAR_URL -Dsonar.token=$SONAR_TOKEN
|
||||||
|
|
||||||
|
@ -46,7 +40,6 @@ build:
|
||||||
stage: build
|
stage: build
|
||||||
image: maven:3.8.6-openjdk-18
|
image: maven:3.8.6-openjdk-18
|
||||||
script:
|
script:
|
||||||
- *setup-mvn
|
|
||||||
- ./mvnw package -DskipTests
|
- ./mvnw package -DskipTests
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "Maven artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
|
name: "Maven artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
|
||||||
|
|
Loading…
Reference in a new issue