Skip to content

Commit 7641c23

Browse files
author
Manuel Perez Belmonte
committed
Added travis files
1 parent 7a0005b commit 7641c23

File tree

6 files changed

+25
-8
lines changed

6 files changed

+25
-8
lines changed

.mvn/wrapper/maven-wrapper.jar

-46.5 KB
Binary file not shown.

.mvn/wrapper/maven-wrapper.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: java
2+
3+
jdk:
4+
- oraclejdk8
5+
6+
script: "mvn cobertura:cobertura"
7+
8+
after_success:
9+
- bash <(curl -s https://codecov.io/bash)

Jenkinsfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
node('docker') {
22
stage "Container Prep"
33
echo("The node is up")
4-
def mycontainer = docker.image('elastest/docker-in-docker:latest')
4+
def mycontainer = docker.image('elastest/ci-docker-siblings:latest')
55
mycontainer.pull()
66
mycontainer.inside("-u jenkins -v /var/run/docker.sock:/var/run/docker.sock:rw") {
77
git 'https://github.com/elastest/elastest-cost-engine.git'
88

9+
stage "Package"
10+
echo ("Packaging")
11+
sh 'mvn package -DskipTests'
12+
913
stage "Tests"
1014
echo ("Starting tests")
1115
sh 'mvn clean test'
1216
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
1317

14-
stage "Package"
15-
echo ("Packaging")
16-
sh 'mvn package -DskipTests'
17-
1818
stage "Archive artifacts"
1919
archiveArtifacts artifacts: 'target/*.jar'
2020

2121
stage "Build image - Package"
2222
echo ("Building")
23-
def myimage = docker.build 'elastest/elastest-cost-engine'
23+
def myimage = docker.build 'elastest/ece'
2424

2525
stage "Run image"
2626
myimage.run()

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![License badge](https://img.shields.io/badge/license-Apache2-green.svg)](http://www.apache.org/licenses/LICENSE-2.0)
2+
[![Documentation badge](https://img.shields.io/badge/docs-latest-brightgreen.svg)](http://elastest.io/docs/)
13

24
[![][ElasTest Logo]][ElasTest]
35

pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@
172172
<groupId>org.codehaus.mojo</groupId>
173173
<artifactId>cobertura-maven-plugin</artifactId>
174174
<version>2.7</version>
175+
<configuration>
176+
<formats>
177+
<format>html</format>
178+
<format>xml</format>
179+
</formats>
180+
<check />
181+
</configuration>
175182
<executions>
176183
<execution>
177184
<phase>test</phase>
@@ -191,11 +198,11 @@
191198
<artifactId>cobertura-maven-plugin</artifactId>
192199
<version>2.7</version>
193200
<configuration>
194-
<check></check>
195201
<formats>
196202
<format>html</format>
197203
<format>xml</format>
198204
</formats>
205+
<check></check>
199206
</configuration>
200207
</plugin>
201208
</plugins>

0 commit comments

Comments
 (0)