Run phpcs during travis script

This commit is contained in:
Kienan Stewart 2018-07-28 12:11:47 -04:00
parent b8fa16f0cb
commit 3281ce35a0
1 changed files with 4 additions and 2 deletions

View File

@ -6,9 +6,11 @@ php:
- 7.0
- 5.6
- 5.5
script: ../vendor/bin/phpunit --coverage-clover=coverage.clover
script:
- ../vendor/bin/phpcs ../
- ../vendor/bin/phpunit --coverage-clover=coverage.clover
before_script:
- composer require phpunit/dbunit
- composer require phpunit/dbunit squizlabs/php_codesniffer
- mysql -e 'create database alternc_test DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;'
- cd phpunit
after_script: