-
Notifications
You must be signed in to change notification settings - Fork 156
/
.travis.yml
28 lines (28 loc) · 908 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
24
25
26
27
28
env:
global:
- secure: "io4vx+/CLGnIG4NQP2F7qgDx/loVCnlejLnZLzlZJrcz8aJA2nsFMfqH+8qIEQak9NX9W1cF02zDnSqszr8OlBiUQw6yWW/OJkKokXtqpCTpobpkApI/ENW18Wgy69HkLV99SzMGr2MfPyY44fwr8k7uITjrtW3JelDbf3q1SCE="
language: php
php:
- 5.3
- 5.4
- 5.5
before_script:
# Composer
- COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev install
- composer self-update
- composer update --prefer-source
script:
# PHPUnit tests
- php vendor/bin/phpunit --configuration tests/phpunit.xml.dist --coverage-text
- mkdir .reports
# Code style
- php vendor/bin/phpcs ./src/Yandex --standard=PSR1 --report=summary
- php vendor/bin/phpcs ./src/Yandex --standard=PSR2 --report=summary
# Duplicate code
- php vendor/bin/phpcpd --log-pmd .reports/pmd-cpd.xml src/Yandex
after_success:
#Share build:
- composer update --no-dev
- php phar.php
notifications:
email: [email protected]