Skip to content

Commit f8cacd9

Browse files
authored
Moving to Screwdriver (#10)
1 parent 13a0d46 commit f8cacd9

File tree

11 files changed

+68
-52
lines changed

11 files changed

+68
-52
lines changed

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Bullet Pulsar
22

3-
[![Build Status](https://travis-ci.com/bullet-db/bullet-pulsar.svg?branch=master)](https://travis-ci.com/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) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.yahoo.bullet/bullet-pulsar/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.yahoo.bullet/bullet-pulsar/)
3+
[![Build Status](https://cd.screwdriver.cd/pipelines/7224/badge)](https://cd.screwdriver.cd/pipelines/7224)
4+
[![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)
5+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.yahoo.bullet/bullet-pulsar/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.yahoo.bullet/bullet-pulsar/)
46

57
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.
68

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@
184184
<groupId>org.eluder.coveralls</groupId>
185185
<artifactId>coveralls-maven-plugin</artifactId>
186186
<version>4.0.0</version>
187+
<configuration>
188+
<repoToken>${env.COVERALLS_TOKEN}</repoToken>
189+
</configuration>
187190
</plugin>
188191
<plugin>
189192
<artifactId>maven-source-plugin</artifactId>

screwdriver.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
cache:
2+
pipeline: ["~/.m2"]
3+
4+
shared:
5+
image: maven:3.6.3-jdk-8
6+
7+
jobs:
8+
main:
9+
requires: [~pr, ~commit]
10+
secrets:
11+
- COVERALLS_TOKEN
12+
steps:
13+
- build: mvn -B clean verify
14+
- coverage: mvn coveralls:report
15+
16+
release:
17+
requires: [~tag:/^bullet-pulsar-\d+\.\d+\.\d+/]
18+
secrets:
19+
- SONATYPE_USERNAME
20+
- SONATYPE_PASSWORD
21+
- GPG_PASSPHRASE
22+
- GPG_ENCPHRASE
23+
steps:
24+
- publish: screwdriver/release.sh

screwdriver/pubring.gpg.enc

2.25 KB
Binary file not shown.

screwdriver/release.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
export GPG_TTY=$(tty)
6+
7+
openssl aes-256-cbc -pass pass:$GPG_ENCPHRASE -in screwdriver/pubring.gpg.enc -out screwdriver/pubring.gpg -d
8+
openssl aes-256-cbc -pass pass:$GPG_ENCPHRASE -in screwdriver/secring.gpg.enc -out screwdriver/secring.gpg -d
9+
10+
mvn clean deploy --settings screwdriver/settings.xml -DskipTests=true -Possrh -Prelease
11+
12+
rm -rf screwdriver/*.gpg

screwdriver/secring.gpg.enc

4.88 KB
Binary file not shown.

screwdriver/settings.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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>ossrh</id>
5+
<username>${env.SONATYPE_USERNAME}</username>
6+
<password>${env.SONATYPE_PASSWORD}</password>
7+
</server>
8+
</servers>
9+
10+
<profiles>
11+
<profile>
12+
<id>ossrh</id>
13+
<activation>
14+
<activeByDefault>true</activeByDefault>
15+
</activation>
16+
<properties>
17+
<gpg.executable>gpg</gpg.executable>
18+
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
19+
<gpg.defaultKeyring>false</gpg.defaultKeyring>
20+
<gpg.homedir>${env.SD_SOURCE_DIR}/screwdriver</gpg.homedir>
21+
<gpg.publickeyring>pubring.gpg</gpg.publickeyring>
22+
<gpg.secretkeyring>secring.gpg</gpg.secretkeyring>
23+
</properties>
24+
</profile>
25+
</profiles>
26+
</settings>

travis/pubring.gpg.enc

-2.23 KB
Binary file not shown.

travis/secring.gpg.enc

-4.84 KB
Binary file not shown.

0 commit comments

Comments
 (0)