.travis.yml
language: php
sudo: false
php:
- 5.6
- 7.0
addons:
code_climate:
repo_token: e33d8fcfffaa6a5171a0c059fabf1a1b29c29a0a26e0eb8424c95a7187ddf038
before_install:
- composer self-update
install:
- composer install --prefer-source --no-interaction
script:
- phpunit --coverage-clover build/logs/clover.xml --stderr --configuration phpunit.xml --debug
- ./vendor/bin/test-reporter
- vendor/bin/phpcs --standard=psr2 src/Alientronics tests/
- vendor/bin/phpcpd --verbose src/
- vendor/bin/phpmd src/ text codesize,unusedcode,naming,design
- vendor/bin/phploc src/
notifications:
email:
recipients:
- henrique.dias@alientronics.com.br
on_success: change
on_failure: always