1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

DO-51 Jenkins CI (#48)

* DO-51 Jenkins CI
* DO-51 refactor
This commit is contained in:
Elad Dolev 2018-05-02 15:36:46 +03:00 committed by GitHub
parent 8fa3c81983
commit 6f2baa3178
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

24
Jenkinsfile vendored Normal file
View 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
View file

@ -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>