加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
ferronrsmith_f8d1 提交于 2019-06-24 21:28 . added ES_JAVA_OPTS for travis
# 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化