forked from object-calisthenics/phpcs-calisthenics-rules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (29 loc) · 897 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
29
30
31
32
33
34
35
language: php
sudo: false
php:
- 7.1
- 7.2
- 7.3
install:
# install composer dependencies
- composer install
script:
# run tests
- vendor/bin/phpunit --coverage-clover coverage.xml
# turn off XDebug
- phpenv config-rm xdebug.ini || return 0
# check coding standard (defined in composer.json "scripts" section)
- composer check-cs
# check with phpstan (defined in composer.json "scripts" section)
- composer phpstan
# run PHP_CodeSniffer with ruleset
- vendor/bin/phpcs src tests -sp --standard=src/ObjectCalisthenics/ruleset.xml --extensions=php
after_script:
# upload coverage.xml file to Coveralls to analyze it
- |
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
php php-coveralls.phar --verbose
# do not send success notifications, they have no value
notifications:
email:
on_success: never