138 Star 473 Fork 115

Piplin / Piplin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.gitlab-ci.yml 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
phecho 提交于 2016-11-15 09:41 . Fixed
# Before Script
before_script:
- docker-php-ext-enable zip
- docker-php-ext-enable mbstring
- docker-php-ext-enable gd
# - docker-php-ext-enable pdo_mysql
# - ping -c 3 mysql
# - composer self-update
- composer config repo.packagist composer https://packagist.phpcomposer.com
- composer install --no-progress --no-interaction
- touch storage/database.sqlite
- cp .env.example .env
- sed -i 's/DB_CONNECTION=mysql/DB_CONNECTION=sqlite/g' .env
- sed -i 's/QUEUE_DRIVER=redis/QUEUE_DRIVER=database/g' .env
- php artisan key:generate
- php artisan migrate --seed --env="testing"
- php vendor/bin/codecept build
- make file-permission
- sleep 5
- php -S 127.0.0.1:8000 -t public/ 2>&1 >/dev/null &
after_script:
- cat storage/logs/*.log
# Services
services:
# - mysql:latest
# Variables
variables:
WITH_XDEBUG: "1"
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
COMPOSER_HOME: /cache/composer
#Stages
stages:
- test
#PHP 7.0
php-7.0:
type: test
image: tetraweb/php:7.0
script:
- php -v
- make cs
- php vendor/bin/codecept run
PHP
1
https://gitee.com/Piplin/Piplin.git
git@gitee.com:Piplin/Piplin.git
Piplin
Piplin
Piplin
1.0

搜索帮助