Added .travis.yml

This commit is contained in:
delvedor
2018-10-30 18:36:41 +01:00
parent a60ac39aa6
commit 99fe53fbca

32
.travis.yml Normal file
View File

@ -0,0 +1,32 @@
dist: trusty
sudo: required
language: node_js
node_js:
- "10"
- "8"
- "6"
env:
global:
- ELASTICSEARCH_VERSION=6.4.0
- QUIET=true
before_install:
- wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ELASTICSEARCH_VERSION}.tar.gz
- tar -xzf elasticsearch-${ELASTICSEARCH_VERSION}.tar.gz
- ./elasticsearch-${ELASTICSEARCH_VERSION}/bin/elasticsearch -Enode.attr.testattr=test -Epath.repo=/tmp -Erepositories.url.allowed_urls='http://snapshot.*' &> /dev/null &
- ./scripts/wait-cluster.sh
install:
- npm install
script:
- npm run lint && npm run test:unit && npm run test:integration
notifications:
email:
on_success: never
on_failure: always