Skip to content

Instantly share code, notes, and snippets.

@rubemlrm
Created September 16, 2015 11:39
Show Gist options
  • Save rubemlrm/63cd8eb7e9ba10b4319d to your computer and use it in GitHub Desktop.
Save rubemlrm/63cd8eb7e9ba10b4319d to your computer and use it in GitHub Desktop.
Gitlab-ci.yml
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