代码拉取完成,页面将自动刷新
# lock distribution
dist: trusty
sudo: true
language: node_js
node_js:
- "10"
branches:
only:
- master
jdk:
oraclejdk9
script:
# switch to jdk 9
- jdk_switcher use oraclejdk9
- npm run test
env:
matrix:
- "ES_VERSION=1.5.0 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz"
- "ES_VERSION=2.3.4 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz"
- "ES_VERSION=5.6.4 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz"
- "ES_VERSION=6.0.0 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz"
- "ES_VERSION=7.0.0 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}-linux-x86_64.tar.gz ES_FLAGS=-Ediscovery.type=single-node"
before_install:
## ES has different download locations for each version, so we'll download them both and then just use the one we want
- curl -Lo elasticsearch.tar.gz ${ES_DOWNLOAD_URL}
## Now, use the ENV to choose the version
- tar -xzf elasticsearch.tar.gz
- export ES_JAVA_OPTS="-Xms512m -Xmx512m"
- ./elasticsearch-${ES_VERSION}/bin/elasticsearch ${ES_FLAGS} &
# ES needs some time to start
- wget -q --waitretry=1 --retry-connrefused -T 240 -O - http://127.0.0.1:9200
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。