代码拉取完成,页面将自动刷新
language: php
php:
- 5.5
- 5.6
- 7.0
# - hhvm
# faster builds on new travis setup not using sudo
sudo: false
# cache vendor dirs
cache:
directories:
- $HOME/.composer/cache
install:
- travis_retry composer self-update && composer --version
- travis_retry composer global require "fxp/composer-asset-plugin:~1.1.0"
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer install --dev --prefer-dist --no-interaction
# codeception
- travis_retry composer global require "codeception/codeception:^2.0" "codeception/specify" "codeception/verify"
# setup application:
- |
cp .env.dist .env
cp vhost.conf.dist vhost.conf
sed -i s/yii2-starter-kit\.dev/localhost:8080/ .env
php console/yii app/setup --interactive=0
cd tests/codeception/backend && codecept build
cd ../common && codecept build
cd ../console && codecept build
cd ../frontend && codecept build
cd ../../../
before_script:
- mysql -e 'CREATE DATABASE `yii2-starter-kit`;';
- cd tests/codeception/bin && php yii migrate --interactive=0 && php yii rbac-migrate --interactive=0 && cd ../../..
script:
- |
php -S localhost:8080 > /dev/null 2>&1 &
cd tests
codecept run
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。