forked from top-think/think
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (28 loc) · 888 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 5.4
- 5.5
- 5.6
before_script:
- pecl channel-update pecl.php.net
- echo "yes" | pecl install apcu-4.0.10
- phpenv config-add tests/myconfig.ini
- composer self-update
- composer install
script:
## LINT
- find thinkphp ! -path "thinkphp/vendor/*" -type f -name \*.php -exec php -l {} \;
## PHP_CodeSniffer
- thinkphp/vendor/bin/phpcs --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 --standard=PSR2 --ignore="thinkphp/vendor/*" thinkphp
## PHP Copy/Paste Detector
- thinkphp/vendor/bin/phpcpd --verbose --exclude vendor thinkphp || true
## PHPLOC
- thinkphp/vendor/bin/phploc --exclude vendor thinkphp
## PHPUNIT
- thinkphp/vendor/bin/phpunit --coverage-clover=coverage.xml
after_success:
- bash <(curl -s https://codecov.io/bash)