Created
September 16, 2015 11:39
-
-
Save rubemlrm/63cd8eb7e9ba10b4319d to your computer and use it in GitHub Desktop.
Gitlab-ci.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_script: | |
- composer install --prefer-dist > /dev/null | |
- export APP_ENV=testing | |
unitTesting: | |
script: | |
- echo "Running PHP Unit tet" | |
- php vendor/bin/phpunit --colors --debug --coverage-text | |
codeSniffer: | |
script: | |
- php vendor/bin/phpcs --config-set ignore_warnings_on_exit 1 | |
- php vendor/bin/phpcs --standard=PSR2 --ignore=app/views,app/storage,app/tests,app/filters.php,app/routes.php,packages/,app/Providers/,app/Console/,app/services/,http/Middleware/,app/Exceptions/,app/Events/ -w --colors app/ | |
allow_failure: true | |
phpMess: | |
script: | |
- php vendor/bin/phpmd app/ text cleancode,controversial,codesize,design,naming,unusedcode --exclude=app/views,app/storage,app/tests,app/filters.php,app/routes.php,packages/,app/Providers/,app/Console/,app/services/,http/Middleware/,app/Exceptions/,app/Events/ | |
allow_failure: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment