forked from vanthome/winston-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (29 loc) · 771 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
language: node_js
sudo: required
dist: xenial
node_js:
- "14"
jdk:
- oraclejdk11
env:
global:
- COVERALLS=1
- WAIT_FOR_ES=1
matrix:
- ES_VERSION=7.11.2
install:
- mkdir /tmp/elasticsearch
- wget -O - https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}-linux-x86_64.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 ci
git:
depth: 10
before_install:
- echo $JAVA_HOME
- java -version
before_script:
- sleep 100
after_success:
- "npm run coveralls"
- "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"