Loading .gitlab-ci.yml 0 → 100644 +43 −0 Original line number Diff line number Diff line stages: - build - test - deploy build: stage: build tags: - docker image: maven:3.6.3-openjdk-11 script: - mvn clean package -DskipTests -DfinalName=vospace-datamodel artifacts: paths: - target/vospace-datamodel.jar - pom.xml expire_in: 7 days only: - master 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: - master 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: - master pom.xml +2 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> <finalName>${project.artifactId}-${project.version}</finalName> </properties> <dependencies> Loading Loading @@ -45,6 +46,7 @@ </dependency> </dependencies> <build> <finalName>${finalName}</finalName> <plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId> Loading Loading
.gitlab-ci.yml 0 → 100644 +43 −0 Original line number Diff line number Diff line stages: - build - test - deploy build: stage: build tags: - docker image: maven:3.6.3-openjdk-11 script: - mvn clean package -DskipTests -DfinalName=vospace-datamodel artifacts: paths: - target/vospace-datamodel.jar - pom.xml expire_in: 7 days only: - master 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: - master 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: - master
pom.xml +2 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> <finalName>${project.artifactId}-${project.version}</finalName> </properties> <dependencies> Loading Loading @@ -45,6 +46,7 @@ </dependency> </dependencies> <build> <finalName>${finalName}</finalName> <plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId> Loading