mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
parent
8fa3c81983
commit
6f2baa3178
2 changed files with 44 additions and 0 deletions
24
Jenkinsfile
vendored
Normal file
24
Jenkinsfile
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#!groovy
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
docker { image 'maven:3.5.3-jdk-10-slim' }
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Test') {
|
||||
environment {
|
||||
CODECOV_TOKEN = '5b1293bb-5536-4f60-bfa3-93b4d15eefeb'
|
||||
}
|
||||
steps {
|
||||
sh 'mvn test'
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit(testResults: '**/target/surefire-reports/*.xml', allowEmptyResults: true)
|
||||
sh 'curl -s https://codecov.io/bash | bash'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
20
pom.xml
20
pom.xml
|
|
@ -122,6 +122,26 @@
|
|||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<version>0.8.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>prepare-agent</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>report</id>
|
||||
<phase>test</phase>
|
||||
<goals>
|
||||
<goal>report</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue