代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。