Skip to content
Snippets Groups Projects
Commit ea5c448e authored by Nicola Fulvio Calabria's avatar Nicola Fulvio Calabria
Browse files

Update .gitlab-ci.yml

parent 75e9582c
No related branches found
No related tags found
No related merge requests found
Pipeline #15486 failed
......@@ -9,11 +9,36 @@ build:
- docker
image: maven:3.6.3-openjdk-14
script:
- mvn clean package -DskipTests
- mvn clean package -DskipTests -DfinalName=vospace-datamodel-test
artifacts:
paths:
- target/*.jar
- target/vospace-datamodel-test.jar
- pom.xml
expire_in: 7 days
only:
- test
test:
stage: test
tags:
- docker
script:
- mvn clean test
- awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print "coverage=" 100*covered/instructions }' target/site/jacoco/jacoco.csv
coverage: '/coverage=\d+\.\d+/'
only:
- test
deploy:
stage: deploy
tags:
- docker
script:
- mvn deploy:deploy-file
-Dfile=target/vospace-datamodel-test.jar
-DrepositoryId=ia2.snapshots
-DpomFile=pom.xml
-Durl=${IA2_MVN_REPO_SNAPSHOTS}
only:
- test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment