代码拉取完成,页面将自动刷新
同步操作将从 imcj/trunon 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Composer stores all downloaded packages in the vendor/ directory.
# Do not use the following if the vendor/ directory is commited to
# your git repository.
cache:
paths:
- vendor/
stages:
- test
- build
- deploy
test:7.0:
image: php:7.0
cache:
paths:
- vendor/
- composer.phar
# TODO: 如果不存在composer.phar,下载安装
before_script:
# Install composer dependencies
- bash ci/docker_install.sh
- wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
- php composer-setup.php
- php -r "unlink('composer-setup.php'); unlink('installer.sig');"
- php composer.phar install
script:
- phpunit
- php vendor/bin/phpcs --standard=PSR2 --ignore=app/views,app/storage,app/tests,app/filters.php,app/routes.php,packages/,app/Providers/,app/Console/,app/services/,http/Middleware/,app/Exceptions/,app/Events/ -w --colors app/
deploy_staging:
stage: deploy
script:
- curl http://59.111.102.8:5000/ -X POST -d token=123
environment:
name: staging
url: http://59.111.102.8
# when: manual
deploy_production:
stage: deploy
script:
- curl http://59.111.102.8:5000/ -X POST -d token=123
environment:
name: production
url: http://59.111.102.8
when: manual
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。