-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
39 lines (38 loc) · 1.15 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
sudo: false
language: java
jdk:
- oraclejdk8
addons:
apt:
packages:
- libxml2-utils
- rpm
before_install:
# Get Graylog version from Maven POM (property: "graylog.version")
- export GRAYLOG_VERSION=$(xmllint --xpath '/*[local-name()="project"]/*[local-name()="properties"]/*[local-name()="graylog.version"]/text()' pom.xml)
# Checkout desired Graylog version
- echo "Checking out Graylog ${GRAYLOG_VERSION}"
- git clone --depth 1 --branch "${GRAYLOG_VERSION}" https://github.com/Graylog2/graylog2-server.git ../graylog2-server
# Build Graylog web interface
- pushd ../graylog2-server
- mvn generate-resources -pl graylog2-server -B -V
- popd
# For automatic deployment, uncomment the lines below.
# See https://docs.travis-ci.com/user/deployment/releases/ for details.
#before_deploy:
# - find . -type f -name 'original-*.jar' -delete
# - mvn jdeb:jdeb
# - mvn rpm:rpm
#deploy:
# provider: releases
# api_key:
# secure: <enter your encrypted GitHub access token>
# file_glob: true
# file:
# - "**/target/*.jar"
# - "**/target/*.deb"
# - "**/target/**/*.rpm"
# skip_cleanup: true
# on:
# tags: true
# jdk: oraclejdk8