加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.60 KB
一键复制 编辑 原始数据 按行查看 历史
剑走偏锋 提交于 2020-03-28 17:55 .
sudo: required
language: php
dist: trusty
php:
- 7.1
- 7.2
- 7.3
addons:
chrome: stable
matrix:
fast_finish: true
services:
- mysql
install:
- mysql -e 'create database if not exists laravel;'
- travis_retry composer create-project --prefer-dist laravel/laravel laravel-tests
- cp -f ./tests/resources/stubs/artisan ./laravel-tests/
- cp -f ./tests/resources/stubs/ComposerConfigCommand.php ./laravel-tests/app/
- mkdir ./laravel-tests/dcat-admin
- cp -rf ./config ./laravel-tests/dcat-admin
- cp -rf ./database ./laravel-tests/dcat-admin
- cp -rf ./resources ./laravel-tests/dcat-admin
- cp -rf ./src ./laravel-tests/dcat-admin
- cp -rf ./tests ./laravel-tests/dcat-admin
- cp -rf ./composer.json ./laravel-tests/dcat-admin
- rm -rf ./laravel-tests/tests
- cp -rf ./tests ./laravel-tests/tests
- cp -f ./phpunit.dusk.xml ./laravel-tests
- cp -f ./.env.testing ./laravel-tests/.env
- cd ./laravel-tests
- php artisan admin:composer-config
- travis_retry composer require dcat/laravel-admin:*@dev
- travis_retry composer require laravel/dusk --dev
- php artisan admin:publish --force
- php artisan admin:install
- php artisan migrate:rollback
- php artisan dusk:chrome-driver
- cp -f ./tests/routes.php ./app/Admin/
- cp -rf ./tests/resources/config ./config/
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- chmod 777 ./vendor/laravel/dusk/bin/chromedriver-linux
- ./vendor/laravel/dusk/bin/chromedriver-linux --headless --disable-gpu --remote-debugging-port=9515 http://localhost &
- php artisan serve &
script:
- php artisan dusk
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化