forked from bmitch/Codor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
23 lines (19 loc) · 814 Bytes
/
.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
language: php
php:
- 5.6
- 7.0
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source --dev
script:
- php vendor/sensiolabs/security-checker/security-checker security:check composer.lock
- vendor/bin/phpcs --standard=psr2 src
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then vendor/bin/phpcs --standard=phpcs.xml src; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then vendor/bin/phpcs --standard=phpcs.xml tests --ignore=tests/Sniffs; fi
- vendor/bin/phpcs --standard=src/Codor/ruleset.xml src
- vendor/bin/phpunit --debug --coverage-clover=coverage.xml
- vendor/bin/phpmd src text codesize,unusedcode,naming
- vendor/bin/phploc src --progress
- vendor/bin/phpcpd src
after_success:
- bash <(curl -s https://codecov.io/bash)