Skip to content

Commit 3c724da

Browse files
committed
Adding travis config for automatic builds/packaging/github releasing.
1 parent cc6d543 commit 3c724da

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: java
2+
jdk:
3+
- oraclejdk7
4+
- oraclejdk8
5+
addons:
6+
apt:
7+
packages:
8+
- rpm
9+
before_deploy:
10+
- mvn jdeb:jdeb && export RELEASE_DEB_FILE=$(ls target/*.deb)
11+
- mvn rpm:rpm && export RELEASE_RPM_FILE=$(ls target/rpm/graylog-zeromq-plugin/RPMS/noarch/graylog-zeromq-plugin-*.rpm)
12+
- export RELEASE_PKG_FILE=$(ls target/graylog-zeromq-plugin-*.jar)
13+
- echo "Deploying release to GitHub releases"
14+
deploy:
15+
provider: releases
16+
api_key:
17+
secure: "ReibrB/5rzx7NoqYmDbfCQWJj7B1ryXDeIRhinSrKwO0xxaedO9T5iUgl9fyF5ZO8LohCFBED5ecnCVAr1pJiW+0HE0lt+RMW7nqpRg74x9PjbEpxpK9wJpyFaXLAbzjmBI1svAripijQNeiYOffcX+VNHmT1isjixuz5rpS1zU="
18+
file:
19+
- "${RELEASE_PKG_FILE}"
20+
- "${RELEASE_DEB_FILE}"
21+
- "${RELEASE_RPM_FILE}"
22+
skip_cleanup: true
23+
on:
24+
tags: true
25+
jdk: oraclejdk7

0 commit comments

Comments
 (0)