forked from pelias/schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (42 loc) · 1.01 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
sudo: false
language: node_js
notifications:
email: false
node_js:
- 6
- 8
- 10
matrix:
fast_finish: true
env:
matrix:
- ES_VERSION=2.4.6
jdk:
- oraclejdk8
install:
- mkdir /tmp/elasticsearch
- wget -O - https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/${ES_VERSION}/elasticsearch-${ES_VERSION}.tar.gz | tar xz --directory=/tmp/elasticsearch --strip-components=1
- /tmp/elasticsearch/bin/plugin install analysis-icu
- /tmp/elasticsearch/bin/elasticsearch --daemonize --path.data /tmp
- npm i
script:
- npm run travis
addons:
apt:
packages:
- oracle-java8-installer
before_install:
- npm i -g npm
before_script:
- sleep 10
- curl http://127.0.0.1:9200/
- node scripts/create_index.js -y
branches:
except:
- /^v\d+\.\d+\.\d+$/
jobs:
include:
- stage: release
node_js: 10
script: curl "https://raw.githubusercontent.com/pelias/ci-tools/master/semantic-release.sh" | bash -
if: branch = production