forked from bluzphp/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 1.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: php
php:
- 5.4
- 5.5
before_script:
# Composer
- COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev install
- composer self-update
- composer update --prefer-source
# Database
- mysql -e 'CREATE DATABASE bluz;'
- mysql -uroot bluz < tests/dump.sql
script:
# PHPUnit tests
- php vendor/bin/phpunit --configuration tests/phpunit.xml.dist --coverage-text
- mkdir .reports
# Code style
- php vendor/bin/phpcs ./src/Bluz --standard=PSR1
- php vendor/bin/phpcs ./src/Bluz --standard=PSR2
# Duplicate code
- php vendor/bin/phpcpd --log-pmd .reports/pmd-cpd.xml src/Bluz
# Lines of code
#- php vendor/bin/phploc --log-csv .reports/phploc.csv src/Bluz
# works incorrect with latest PHP versions
# PHP Depend
#- php vendor/bin/pdepend --jdepend-xml=.reports/jdepend.xml --jdepend-chart=.reports/dependencies.svg --overview-pyramid=.reports/pyramid.svg ./src/Bluz
# Mess detection
#- php vendor/bin/phpmd ./src/Bluz text codesize,unusedcode,naming
notifications:
email: false