加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
Stéphane Dion 提交于 2022-07-01 15:38 . ES new releases
language: php
php:
- 8.1
services:
- elasticsearch
before_install:
- nvm install 16
- curl -s -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.5-amd64.deb
- sudo dpkg -i --force-confnew elasticsearch-7.17.5-amd64.deb
- sudo sed -i.old 's/-Xms1g/-Xms128m/' /etc/elasticsearch/jvm.options
- sudo sed -i.old 's/-Xmx1g/-Xmx128m/' /etc/elasticsearch/jvm.options
- echo -e '-XX:+DisableExplicitGC\n-Djdk.io.permissionsUseCanonicalPath=true\n-Dlog4j.skipJansi=true\n-server\n' | sudo tee -a /etc/elasticsearch/jvm.options
- sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch
- sudo systemctl restart elasticsearch
#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:
before_script:
- sleep 10
env:
- ELASTICSEARCH_URL="http://127.0.0.1:9200"
install:
- composer install
- npm install
- npm run build
script:
- bin/console app:phpunit
- bin/phpunit
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化