-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
70 lines (65 loc) · 3.23 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
sudo: false
dist: trusty
language: groovy
addons:
chrome: stable
jdk: oraclejdk8
env:
global:
- PLUGIN_VERSION=0.3.0
- TERM=dumb
- CHROMEDRIVER_VERSION=2.35
matrix:
- ELASTICSEARCH_VERSION=5.4.0 KIBANA_VERSION=5.4.0
- ELASTICSEARCH_VERSION=5.4.1 KIBANA_VERSION=5.4.1
- ELASTICSEARCH_VERSION=5.4.2 KIBANA_VERSION=5.4.2
- ELASTICSEARCH_VERSION=5.4.3 KIBANA_VERSION=5.4.3
- ELASTICSEARCH_VERSION=5.5.0 KIBANA_VERSION=5.5.0
- ELASTICSEARCH_VERSION=5.5.1 KIBANA_VERSION=5.5.1
- ELASTICSEARCH_VERSION=5.5.2 KIBANA_VERSION=5.5.2
- ELASTICSEARCH_VERSION=5.5.3 KIBANA_VERSION=5.5.3
- ELASTICSEARCH_VERSION=5.6.0 KIBANA_VERSION=5.6.0
- ELASTICSEARCH_VERSION=5.6.1 KIBANA_VERSION=5.6.1
- ELASTICSEARCH_VERSION=5.6.2 KIBANA_VERSION=5.6.2
install:
# install kibana
- mkdir /tmp/kibana-server
- wget --directory-prefix=/tmp/kibana-server https://artifacts.elastic.co/downloads/kibana/kibana-${KIBANA_VERSION}-linux-x86_64.tar.gz
- tar -xzf /tmp/kibana-server/kibana-${KIBANA_VERSION}-linux-x86_64.tar.gz --directory /tmp/kibana-server
# install elasticsearch
- mkdir /tmp/elasticsearch-server
- wget --directory-prefix=/tmp/elasticsearch-server https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ELASTICSEARCH_VERSION}.tar.gz
- tar -xzf /tmp/elasticsearch-server/elasticsearch-${ELASTICSEARCH_VERSION}.tar.gz --directory /tmp/elasticsearch-server
# build project
- npm install
- ./build.sh ${KIBANA_VERSION} ${PLUGIN_VERSION}
# start elasticsearch and kibana
- /tmp/elasticsearch-server/elasticsearch-${ELASTICSEARCH_VERSION}/bin/elasticsearch &
- /tmp/kibana-server/kibana-${KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install file:///tmp/stagemonitor-kibana-${PLUGIN_VERSION}-${KIBANA_VERSION}.zip
- /tmp/kibana-server/kibana-${KIBANA_VERSION}-linux-x86_64/bin/kibana &
# install chromedriver
- wget --directory-prefix=/tmp https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip
- unzip -d /tmp/chromedriver /tmp/chromedriver_linux64.zip
- export PATH=$PATH:/tmp/chromedriver
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 10 # wait for elastic / kibana / xvfb
script:
- echo running tests....
- pushd tests
- ./gradlew test --info --stacktrace
- popd
before_deploy:
- cp /tmp/stagemonitor-kibana-* ${TRAVIS_BUILD_DIR}
- ls -lah
deploy:
provider: releases
api_key:
secure: KjOeKj0DOTGUxwiUSFlECiZrfIyrtL5mcpqilrSBuqKizv4moSaee0ZL/iGFaNoZpzBSVJO172h130rHQYZbgLX0XiZjNQpZzdSuu1HMvInxbf0y/70R8cmjlM52zOL/OaAGYolJsJPSU/XltwrH97O5FjdfeU1M35GGxwIbh/AV6NxBK0ypK0CT3G9dfVAcP+A0/bnbJWCM4CGH0HsIPFHsDajRnx4gNcW+/DBo4m+L7lB3kp33c+JcctRTAtJHTyjrUxqcPSq882P2IuyWj7HVx5ChyTHeTmmunhioZMpHmxtr7UpKYR3sPQweGCDsdNpn3HX2pr8jl67yviEoIdlpHSXk/XoIQFmt4ORPOFBIDrI8STDFpWkiSYhKkWjMcc+mViwnzZ7p1gPihwBp//3hYlD5odN8YWHDWuoA65ryT8Z1UbcTPUVKRvZTOp63rGYIRxF7uVKvY6pmPtjY4iXPo+OcDI37AYGv/fcnEQMVZz0w6RYUzP/cXCJd6Fx91N3EV4ZiJfSRTK2Pw8vLS2bfMQ7J2LNxLJUQICbB3qy0hbYf0Vdys4y/0uXiREXVlEVXbewWUFC9g4M53DXXBHwXEWQPl8b2d3sItQ27ArWYW5LPjeOAab5fmElyQlgYCRTwudYd9UvGIvhMqHY8tPR+YKpVUauYWJl8VRt0aoo=
file: stagemonitor-kibana-*
file_glob: true
skip_cleanup: true
on:
tags: true
repo: stagemonitor/stagemonitor-kibana