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

Update .gitlab-ci.yml

parent c12fbdbf
No related branches found
No related tags found
No related merge requests found
Pipeline #15483 passed
...@@ -9,35 +9,11 @@ build: ...@@ -9,35 +9,11 @@ build:
- docker - docker
image: maven:3.6.3-openjdk-14 image: maven:3.6.3-openjdk-14
script: script:
- mvn clean package -DskipTests -DfinalName=vospace-datamodel - mvn clean package -DskipTests -DfinalName=vospace-datamodel-test
artifacts: artifacts:
paths: paths:
- target/vospace-datamodel.jar - target/vospace-datamodel-test.jar
- pom.xml - pom.xml
expire_in: 7 days expire_in: 7 days
only: only:
- test - 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.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