Skip to content

Commit 564eb00

Browse files
committed
CI via Travis
1 parent 96491bd commit 564eb00

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.travis.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
language: php
2+
php:
3+
- 5.2
4+
- 5.3.3
5+
- 5.3
6+
- 5.4
7+
- 5.5
8+
9+
before_script:
10+
## Composer
11+
- curl -s http://getcomposer.org/installer | php
12+
- php composer.phar install
13+
## PHP_CodeSniffer
14+
- pyrus install pear/PHP_CodeSniffer
15+
- phpenv rehash
16+
## PHP Copy/Paste Detector
17+
- curl -o phpcpd.phar https://phar.phpunit.de/phpcpd.phar
18+
## PHP Mess Detector
19+
- pear config-set preferred_state beta
20+
- printf "\n" | pecl install imagick
21+
- pear channel-discover pear.phpmd.org
22+
- pear channel-discover pear.pdepend.org
23+
- pear install --alldeps phpmd/PHP_PMD
24+
- phpenv rehash
25+
## PHPLOC
26+
- curl -o phploc.phar https://phar.phpunit.de/phploc.phar
27+
28+
script:
29+
## PHP_CodeSniffer
30+
- phpcs --standard=PSR1 src/
31+
- phpcs --standard=PSR2 src/
32+
## PHP Copy/Paste Detector
33+
- php phpcpd.phar --verbose src/
34+
## PHP Mess Detector
35+
- phpmd src/ text codesize,unusedcode,naming,design
36+
## PHPLOC
37+
- php phploc.phar src/
38+
39+
notifications:
40+
email:
41+

0 commit comments

Comments
 (0)