forked from sunh-2087/Training-php-and-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
framgia-ci.yml
55 lines (55 loc) · 1.72 KB
/
framgia-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
project_type: php
build:
general_test:
image: framgiaciteam/laravel-workspace:latest
services:
mysql_test:
image: mysql:5.7
environment:
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root
prepare:
- cp .env.civ3.example .env
- php artisan config:clear
- composer install
- framgia-ci test-connect mysql_test 3306 60
- php artisan migrate --database=mysql_test
test:
eslint:
ignore: false
command: yarn run eslint --color --format=checkstyle --output-file=./.framgia-ci-reports/eslint.xml
phpcpd:
ignore: true
command: phpcpd --log-pmd=.framgia-ci-reports/phpcpd.xml app
phpmd:
ignore: true
command: phpmd app xml cleancode,codesize,controversial,design,naming,unusedcode --reportfile .framgia-ci-reports/phpmd.xml
pdepend:
ignore: true
command: pdepend --summary-xml=.framgia-ci-reports/pdepend.xml
--jdepend-chart=.framgia-ci-reports/pdepend.svg
--overview-pyramid=.framgia-ci-reports/pyramid.svg
app
phpmetrics:
ignore: true
command: phpmetrics --report-html=.framgia-ci-reports/metrics.html
--report-xml=.framgia-ci-reports/metrics.xml
app
phpcs:
ignore: false
command: echo '' | phpcs --standard=Framgia --report-checkstyle=.framgia-ci-reports/phpcs.xml --ignore=app/Supports/* app
phpunit:
ignore: false
command:
- php -dzend_extension=xdebug.so vendor/bin/phpunit
--coverage-clover=.framgia-ci-reports/coverage-clover.xml
--coverage-html=.framgia-ci-reports/coverage
cache:
composer:
folder: vendor
file: composer.lock
nodejs:
folder: node_modules
file: yarn.lock