Skip to content

Commit dac7e4b

Browse files
authored
Merge pull request #1 from atkawa7/develop
Develop
2 parents 1752ada + 0b97318 commit dac7e4b

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

.travis.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
language: java
2+
3+
before_install:
4+
- echo "MAVEN_OPTS='-Xmx2048M -Xss128M -XX:+CMSClassUnloadingEnabled -XX:+UseG1GC -XX:-UseGCOverheadLimit'" > ~/.mavenrc
5+
6+
install: skip
7+
script: travis_wait 60 mvn -q test jacoco:report coveralls:report -pl httpsnippet
8+
9+
sudo: required
10+
11+
jdk:
12+
- oraclejdk8
13+
14+
addons:
15+
apt:
16+
packages:
17+
- oracle-java8-installer
18+
cache:
19+
directories:
20+
- .autoconf
21+
- $HOME/.m2
22+
after_success:
23+
- mvn cobertura:cobertura -pl httpsnippet && bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# HTTP Snippet
22

3+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
4+
![Coveralls github](https://img.shields.io/coveralls/github/atkawa7/httpsnippet.svg?label=cobertura)
5+
![Codecov](https://img.shields.io/codecov/c/github/atkawa7/httpsnippet.svg?label=jacoco)
6+
![GitHub issues](https://img.shields.io/github/issues/atkawa7/httpsnippet.svg)
37
> HTTP Snippet port for java. See [the original node port](https://github.com/Kong/httpsnippet). Supports *many* languages & tools including: `cURL`, `HTTPie`, `Javascript`, `Node`, `C`, `Java`, `PHP`, `Objective-C`, `Swift`, `Python`, `Ruby`, `C#`, `Go`, `OCaml` and more!
48
59

httpsnippet/pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,17 @@
9696

9797
<build>
9898
<plugins>
99+
<plugin>
100+
<groupId>org.eluder.coveralls</groupId>
101+
<artifactId>coveralls-maven-plugin</artifactId>
102+
<version>${coveralls-maven-plugin.version}</version>
103+
<configuration>
104+
<repoToken>${coveralls.token}</repoToken>
105+
<sourceDirectories>
106+
<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
107+
</sourceDirectories>
108+
</configuration>
109+
</plugin>
99110
<plugin>
100111
<groupId>org.jacoco</groupId>
101112
<artifactId>jacoco-maven-plugin</artifactId>
@@ -115,6 +126,25 @@
115126
</execution>
116127
</executions>
117128
</plugin>
129+
<plugin>
130+
<groupId>org.codehaus.mojo</groupId>
131+
<artifactId>cobertura-maven-plugin</artifactId>
132+
<version>${cobertura-maven-plugin.version}</version>
133+
<configuration>
134+
<formats>
135+
<format>html</format>
136+
<format>xml</format>
137+
</formats>
138+
<check />
139+
</configuration>
140+
<dependencies>
141+
<dependency>
142+
<groupId>org.ow2.asm</groupId>
143+
<artifactId>asm</artifactId>
144+
<version>5.0.3</version>
145+
</dependency>
146+
</dependencies>
147+
</plugin>
118148
</plugins>
119149
</build>
120150

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@
108108
<springfox.version>2.9.2</springfox.version>
109109
<versions-maven-plugin.version>2.7</versions-maven-plugin.version>
110110
<xml-format-maven-plugin.version>3.0.7</xml-format-maven-plugin.version>
111+
<coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
112+
<codecov.token>${env.CODECOV_TOKEN}</codecov.token>
113+
<coveralls.token>${env.COVERALLS_REPO_TOKEN}</coveralls.token>
114+
<cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
111115
</properties>
112116

113117
<dependencyManagement>
@@ -598,6 +602,11 @@
598602
</validationProperties>
599603
</configuration>
600604
</plugin>
605+
<plugin>
606+
<groupId>org.eluder.coveralls</groupId>
607+
<artifactId>coveralls-maven-plugin</artifactId>
608+
<version>${coveralls-maven-plugin.version}</version>
609+
</plugin>
601610
</plugins>
602611
</pluginManagement>
603612
</build>

0 commit comments

Comments
 (0)