forked from bloublou2014/elasticsearch-odm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (33 loc) · 1.13 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
# in order to use 'trusty' dist, need this.
# see https://docs.travis-ci.com/user/trusty-ci-environment/
sudo: required
# trust dist provides a modern build chain (as opposed to 'precise' dist)
# which absolves us from having to install compilers and stuff
dist: trusty
language: node_js
env: TARGET=test
# Nothing needed
node_js:
- 'node'
- '6'
- '5'
- '4'
#before_install:
# nothing to do
#services:
# 1. needed to test
# - elasticsearch
before_script:
# 1. ElasticSearch takes few seconds to start, to make sure it is available when the build script runs
# add a small delay to your build script:
# - sleep 10
# or 2. install specific version of elasticsearch
- curl -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.3.3/elasticsearch-2.3.3.deb && sudo dpkg -i --force-confnew elasticsearch-2.3.3.deb && sudo service elasticsearch restart
- echo "Waiting 10sec that elaticsearch starts"
- sleep 10
- echo "check elasticsearch availability"
- curl http://localhost:9200
script: 'npm run-script test'
notifications:
on_success: change
on_failure: always