-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (42 loc) · 1.13 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#Type : PHP
language: php
php:
- 5.3.3
- 5.4
- 5.5
before_script:
## Composer
- curl -s http://getcomposer.org/installer | php
- php composer.phar install
## PHP_CodeSniffer
- pyrus install pear/PHP_CodeSniffer
- phpenv rehash
## PHP Copy/Paste Detector
- curl -o phpcpd.phar https://phar.phpunit.de/phpcpd.phar
## PHP Mess Detector
- pear config-set preferred_state beta
- printf "\n" | pecl install imagick
- pear channel-discover pear.phpmd.org
- pear channel-discover pear.pdepend.org
- pear install --alldeps phpmd/PHP_PMD
- phpenv rehash
## PHPLOC
- curl -o phploc.phar https://phar.phpunit.de/phploc.phar
## Atoum
- curl -o mageekguy.atoum.phar http://downloads.atoum.org/nightly/mageekguy.atoum.phar
## Glances
- sudo pip install Glances
- sudo glances -s -B "127.0.0.1" -P "password" &
script:
## PHP_CodeSniffer
- phpcs --standard=PSR1 src/
- phpcs --standard=PSR2 src/
## PHP Copy/Paste Detector
- php phpcpd.phar --verbose src/
## PHP Mess Detector
- phpmd src/ text unusedcode,naming,design
## PHPLOC
- php phploc.phar src/
notifications:
email: