Skip to content

Commit 318c942

Browse files
committed
add kool.yml example
1 parent e80d714 commit 318c942

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

laravel/gitlab/index.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,38 @@ <h3>Gitlab CI configuration for a Laravel application running with Kool.dev</h3>
9797
phpunit:
9898
extends: .phpunit</pre>
9999
</div>
100+
<p>and on your <b>kool.yml</b> make sure to add on the default Laravel preset, the QA help tasks which you can run locally and will be used by the CI jobs above:</p>
101+
102+
<div style="margin: 1em 5em; padding: 1em;" class="bg-dark">
103+
<pre class="text-light">
104+
phpqa: kool docker jakzal/phpqa:1.17.0-php7.2-alpine
105+
# helpful to sync up service dependencies
106+
wait-services: kool exec app dockerize -wait tcp://database:3306 -wait tcp://cache:6379 -timeout 30s
107+
108+
# quality assurance tools
109+
eslint: kool run yarn lint
110+
phan: kool run phpqa phan --color -p -l app -iy 5
111+
phpcpd: kool run phpqa phpcpd --fuzzy app
112+
phpmd: kool run phpqa phpmd app text phpmd/codesize.xml,phpmd/controversial.xml,phpmd/design.xml,phpmd/naming.xml,unusedcode,phpmd/cleancode.xml
113+
phpmnd: kool run phpqa phpmnd app --ignore-funcs=round,sleep,abort,strpad,number_format --exclude=tests --progress --extensions=default_parameter,-return,argument
114+
php-security-checker: kool run phpqa security-checker security:check composer.lock
115+
phpunit: kool exec app ./vendor/bin/phpunit
116+
start:chrome: kool docker -- --name="chromedriver" --network=$KOOL_GLOBAL_NETWORK -d --shm-size=256M fireworkweb/chromedriver:latest
117+
stop:chrome: docker stop chromedriver
118+
dusk: kool run artisan dusk
119+
php-cs-fixer-check:
120+
- kool run phpqa php-cs-fixer fix --diff --dry-run app/
121+
- kool run phpqa php-cs-fixer fix --diff --dry-run tests/
122+
- kool run phpqa php-cs-fixer fix --diff --dry-run resources/lang
123+
- kool run phpqa php-cs-fixer fix --diff --dry-run config
124+
- kool run phpqa php-cs-fixer fix --diff --dry-run database
125+
php-cs-fixer:
126+
- kool run phpqa php-cs-fixer fix --diff --format=txt --verbose app/
127+
- kool run phpqa php-cs-fixer fix --diff --format=txt --verbose tests/
128+
- kool run phpqa php-cs-fixer fix --diff --format=txt --verbose resources/lang
129+
- kool run phpqa php-cs-fixer fix --diff --format=txt --verbose config
130+
- kool run phpqa php-cs-fixer fix --diff --format=txt --verbose database</pre>
131+
</div>
100132
</div>
101133
</section>
102134

0 commit comments

Comments
 (0)