3 Star 9 Fork 0

pcit-ce / pcit

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.drone.yml 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
khs1994 提交于 2020-05-18 01:00 . [PHP] Update to v7.4.6
name: CI
kind: pipeline
type: docker
steps:
- name: install
image: khs1994/php:7.4.0-composer-alpine
commands:
- pwd
- composer install
# - composer update
- name: script
pull: always
image: khs1994/php:7.4.0-fpm-alpine
environment:
CI_REDIS_HOST: redis
CI_REDIS_PORT: 6379
CI_MYSQL_HOST: mysql
CI_MYSQL_PORT: 3306
CI_MYSQL_USERNAME: root
CI_MYSQL_PASSWORD: test
CI_MYSQL_DATABASE: test
commands:
- pwd
- mv $${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini.default $${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini
- sleep 30
- vendor/bin/phpunit --coverage-clover=coverage.xml
# volumes:
# - /tmp:/tmp
# privileged: true
when:
branch: master
event: [push,pull_request,tag]
- name: codecov
image: plugins/codecov
settings:
# token: your-codecov-token
files:
- "*.xml"
paths:
- tests/output/coverage
when:
status: success
environment:
CODECOV_TOKEN:
from_secret: codecov_token
- name: docker build
image: plugins/docker
settings:
registry: docker.khs1994.com
repo: pcit/pcit
tags: latest
when:
status: success
event: push
environemnt:
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
services:
- name: mysql
image: mysql:5.7.29
environment:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: test
- name: redis
image: redis:6.0.2-alpine
commands: ["--bind","0.0.0.0"]
PHP
1
https://gitee.com/pcit-ce/pcit.git
git@gitee.com:pcit-ce/pcit.git
pcit-ce
pcit
pcit
master

搜索帮助