forked from ConsoleCatzirl/jenkins-logstash-plugin
-
Notifications
You must be signed in to change notification settings - Fork 108
/
.travis.yml
41 lines (36 loc) · 1.32 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
40
41
env:
global:
- LOGSTASH_DOCKER_IMAGE="logstash/logstash"
- LOGSTASH_DOCKER_REGISTRY="docker.elastic.co"
- LOGSTASH_DOCKER_VERSION="7.6.1"
- LOGSTASH_DOCKER_ENV="XPACK_MONITORING_ENABLED=false"
- LOGSTASH_PIPELINE_DIR="src/test/resources/logstash/pipeline"
- LOGSTASH_LOGS_DIR="target/logs"
- LOGSTASH_LOGFILE="syslog-test.log"
- JENKINS_SERVER_COOKIE="true"
sudo: required
services:
- docker
before_install:
- "mvn clean package --quiet"
- "mkdir -p ${TRAVIS_BUILD_DIR}/${LOGSTASH_LOGS_DIR}"
- "touch ${TRAVIS_BUILD_DIR}/${LOGSTASH_LOGS_DIR}/${LOGSTASH_LOGFILE}"
- "sudo chown 1000 ${TRAVIS_BUILD_DIR}/${LOGSTASH_LOGS_DIR}/${LOGSTASH_LOGFILE}"
- "sudo chmod g+w ${TRAVIS_BUILD_DIR}/${LOGSTASH_LOGS_DIR}/${LOGSTASH_LOGFILE}"
- "docker pull ${LOGSTASH_DOCKER_REGISTRY}/${LOGSTASH_DOCKER_IMAGE}:${LOGSTASH_DOCKER_VERSION}"
- docker run -d
-v ${TRAVIS_BUILD_DIR}/${LOGSTASH_PIPELINE_DIR}:/usr/share/logstash/pipeline
-v ${TRAVIS_BUILD_DIR}/${LOGSTASH_LOGS_DIR}:/tmp/logs
-p 127.0.0.1:514:5555
-p 127.0.0.1:514:5555/udp
-e ${LOGSTASH_DOCKER_ENV}
${LOGSTASH_DOCKER_REGISTRY}/${LOGSTASH_DOCKER_IMAGE}:${LOGSTASH_DOCKER_VERSION}
language: java
dist: trusty
jdk:
- oraclejdk8
- openjdk8
branches:
except:
- /^test.*/i
script: "mvn verify -DskipIntegrationTests=false"