Skip to content

Commit 1e50dc0

Browse files
committed
CI via Travis
1 parent 3f098ba commit 1e50dc0

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.travis.yml

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

0 commit comments

Comments
 (0)