forked from vanthome/winston-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (36 loc) · 913 Bytes
/
.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
language: node_js
sudo: required
addons:
apt:
packages:
- oracle-java8-installer
- oracle-java8-set-default
node_js:
- "6"
- "8"
jdk:
- oraclejdk8
env:
global:
- COVERALLS=1
- WAIT_FOR_ES=1
matrix:
- ES_VERSION=6.3.0
install:
- mkdir /tmp/elasticsearch
- wget -O - https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz | tar xz --directory=/tmp/elasticsearch --strip-components=1
- /tmp/elasticsearch/bin/elasticsearch --daemonize -E path.data=/tmp
- until curl --silent -XGET --fail http://localhost:9200; do printf '.'; sleep 1; done
- npm install
git:
depth: 10
before_install:
- sudo update-java-alternatives -s java-8-oracle
- echo $JAVA_HOME
- which java
- java -version
before_script:
- sleep 10
after_success:
- 'npm run coveralls'
- 'cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js'