Skip to content

Commit 9e4f0f7

Browse files
authored
Travis (#1)
1 parent 3454a00 commit 9e4f0f7

File tree

5 files changed

+121
-2
lines changed

5 files changed

+121
-2
lines changed

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: java
2+
jdk:
3+
- oraclejdk8
4+
script:
5+
- mvn verify
6+
after_success:
7+
- mvn coveralls:report
8+
- test "${TRAVIS_PULL_REQUEST}" == "false" && test "${TRAVIS_TAG}" != "" && mvn deploy
9+
--settings travis/settings.xml
10+
cache:
11+
directories:
12+
- "~/.m2"
13+
branches:
14+
only:
15+
- master
16+
- "/^bullet-pulsar-[0-9]+\\.[0-9]+\\.[0-9]+/"
17+
env:
18+
global:
19+
- secure: T9aFw4A7YnAGAmwbKCkOdK95N1wPtcnU+yn1pltt7cV9LgkGAGgFWIaXTxC39YiHjPJ0RUDfastZS3YdzpmK/v66lBi2O5kxu+mfPw9KF3jFRQDb30egMbMfHUg8GTrX7IMPlNZvNXX+bsfxlvfzCZmET1678/Tu2GDdZh2P6sI0cicIub7o7X7hzSCckUv2AlvXuX9wI7eBmIddYfRxmnrGTQq+u6AnFO3LeIboDvvCQpzrc2hAza95s+C07FThKLNqQwcM5f0xnLnZqgcC+9DbeT7VT6gsITPSYAUBvBRBDvGuOkbTf7TAru88sIn3U8rcQ7+Xf22yQacKyoRFmo4+dua3NG0oOQD4Hxd3eYb7IbdIUsva35W8v2e3XT+m1ittFIULS+QcHTbJu1D/TlAebJWiNS1FC03uLSJlTRAVxtkBiae1YtIg0hpAGTNh5ax5PVDmQuXOrwRqpEIW9v/8rbynMGntkJGdnqJhC4VLR4wJaKHDeIt35QnRQ6y0+L76Nnh0oRDSBw4qPpcV8u9RwIFPyYkuTP3L61UsGUJklAhUp/FsfqfJCcSwDNHaZ+iCwFtxcM0KK3HXNMobbgeFxTqN98AfcxXH9Elf7XFBmXh+S/FyGF6VtU4Z0V0EB74VXL5sr7uY/bqTvzgkjYWGqhYBU/fODf9Bcq4S0XI=
20+
- secure: XQBKvNvTHryhpQeWIcammmYFcgiCE/RCwtvy/qiCXh2mNOpvEg8hFUusjETlwcbxb4HazNAex8fW/yqLdN3JdeU7OUxKJ82nLt2hwbTmhXcEiRVr6uuF1j8miVfR/UAjIp8ebRffg4LAgPs7EN+aY7DEPGNv9KUfXCTuxt5v0HWeg0Xq1vGQ/jUHCnoMGIGheOcaCT0HCHM9b5+uEVg88ns9k1UxUVVu0WiZAho29P4JKMJXNLeM5FNODlvWSBEWs7gwwAWdazCcdlLYQEukPy4w1WNNbyLGgREze6KRgU98uUOFcYemHa6mYMYhM7E3Qe7N7yVT5EcHnu0sE+mvOgIugECQM1ClaZ/IH7preqBV2kxeba+UdBogjkGWp5aFTfzgSAMI85l2t2IjqLeCsdsAF0pfooMOA5CpRWLUnkHapY91aS3xDCVPZPaEq4Rs4G7NWWDi6ACN2LRpJboutPHy5ZypuWDYxcbXpsiR5aZmvz+EAajdPYaqRgt3lkiK6lnE8j0eBf+T4FsAUWQttyeWxozW7EYEq5ZZsQkvKAb9BDd5/bDGBy3OauC+VCGvJmPGnK47J1+qjh04aRlssmUg3HAHt6nsbHOG74lIMR/QuDXuSlRuK+k29no1mLI6QShbqycJxOxy8lZuuF60qVESnvnZ7v+6Y3+rfZX4v/A=

Makefile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
all: full
2+
3+
full:
4+
mvn clean javadoc:jar package
5+
6+
clean:
7+
mvn clean
8+
9+
test:
10+
mvn clean verify
11+
12+
jar:
13+
mvn clean package
14+
15+
release:
16+
mvn -B release:prepare release:clean
17+
18+
coverage:
19+
mvn clean clover2:setup test clover2:aggregate clover2:clover
20+
21+
doc:
22+
mvn clean javadoc:javadoc
23+
24+
cc: see-coverage
25+
26+
see-coverage: coverage
27+
cd target/site/clover; python -m SimpleHTTPServer
28+
29+
cd: see-doc
30+
31+
see-doc: doc
32+
cd target/site/apidocs; python -m SimpleHTTPServer
33+
34+
fix-javadocs:
35+
mvn javadoc:fix -DfixClassComment=false -DfixFieldComment=false
36+

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Bullet Pulsar
22

3+
[![Build Status](https://travis-ci.org/bullet-db/bullet-pulsar.svg?branch=master)](https://travis-ci.org/bullet-db/bullet-pulsar) [![Coverage Status](https://coveralls.io/repos/github/bullet-db/bullet-pulsar/badge.svg?branch=master)](https://coveralls.io/github/bullet-db/bullet-pulsar?branch=master) [![Download](https://api.bintray.com/packages/yahoo/maven/bullet-pulsar/images/download.svg) ](https://bintray.com/yahoo/maven/bullet-pulsar/_latestVersion)
4+
35
This project implements Bullet PubSub through [Pulsar](https://pulsar.apache.org), allowing you to use Pulsar as your pubsub layer for transporting Bullet queries and results between the Bullet Web Service and Backend.
46

57
## Table of Contents

pom.xml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@
77
<groupId>com.yahoo.bullet</groupId>
88
<artifactId>bullet-pulsar</artifactId>
99
<version>0.0.1-SNAPSHOT</version>
10+
<packaging>jar</packaging>
11+
<name>bullet-pulsar</name>
12+
13+
<scm>
14+
<developerConnection>scm:git:ssh://git@github.com/bullet-db/bullet-pulsar.git</developerConnection>
15+
<tag>HEAD</tag>
16+
</scm>
17+
18+
<distributionManagement>
19+
<repository>
20+
<id>bintray-bullet-pulsar-repo</id>
21+
<url>https://api.bintray.com/maven/yahoo/maven/bullet-pulsar;publish=1</url>
22+
</repository>
23+
</distributionManagement>
1024

1125
<repositories>
1226
<repository>
@@ -23,7 +37,8 @@
2337
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2438
<maven.compiler.source>1.8</maven.compiler.source>
2539
<maven.compiler.target>1.8</maven.compiler.target>
26-
<bullet.core.version>0.6.0</bullet.core.version>
40+
<bullet.core.version>0.6.4</bullet.core.version>
41+
<pulsar.client.version>2.2.0</pulsar.client.version>
2742
</properties>
2843

2944
<dependencies>
@@ -65,7 +80,7 @@
6580
<dependency>
6681
<groupId>org.apache.pulsar</groupId>
6782
<artifactId>pulsar-client</artifactId>
68-
<version>2.2.0</version>
83+
<version>${pulsar.client.version}</version>
6984
</dependency>
7085
</dependencies>
7186
<build>
@@ -94,6 +109,14 @@
94109
</dependency>
95110
</dependencies>
96111
</plugin>
112+
<plugin>
113+
<groupId>com.atlassian.maven.plugins</groupId>
114+
<artifactId>maven-clover2-plugin</artifactId>
115+
<version>4.0.5</version>
116+
<configuration>
117+
<licenseLocation>${user.home}/clover.license</licenseLocation>
118+
</configuration>
119+
</plugin>
97120
<plugin>
98121
<groupId>org.jacoco</groupId>
99122
<artifactId>jacoco-maven-plugin</artifactId>
@@ -142,6 +165,11 @@
142165
</configuration>
143166
</execution>
144167
</executions>
168+
</plugin>
169+
<plugin>
170+
<groupId>org.eluder.coveralls</groupId>
171+
<artifactId>coveralls-maven-plugin</artifactId>
172+
<version>4.0.0</version>
145173
</plugin>
146174
<plugin>
147175
<artifactId>maven-javadoc-plugin</artifactId>
@@ -159,6 +187,30 @@
159187
</execution>
160188
</executions>
161189
</plugin>
190+
<plugin>
191+
<artifactId>maven-release-plugin</artifactId>
192+
<version>2.5.2</version>
193+
<dependencies>
194+
<dependency>
195+
<groupId>org.apache.maven.scm</groupId>
196+
<artifactId>maven-scm-provider-gitexe</artifactId>
197+
<version>1.8.1</version>
198+
</dependency>
199+
</dependencies>
200+
</plugin>
201+
<plugin>
202+
<artifactId>maven-deploy-plugin</artifactId>
203+
<version>2.8.2</version>
204+
<executions>
205+
<execution>
206+
<id>deploy</id>
207+
<phase>deploy</phase>
208+
<goals>
209+
<goal>deploy</goal>
210+
</goals>
211+
</execution>
212+
</executions>
213+
</plugin>
162214
</plugins>
163215
</build>
164216
</project>

travis/settings.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
2+
<servers>
3+
<server>
4+
<id>bintray-bullet-pulsar-repo</id>
5+
<username>${env.BINTRAY_USER}</username>
6+
<password>${env.BINTRAY_API_KEY}</password>
7+
</server>
8+
</servers>
9+
</settings>

0 commit comments

Comments
 (0)