-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
51 lines (47 loc) · 1.58 KB
/
.travis.yml
File metadata and controls
51 lines (47 loc) · 1.58 KB
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
46
47
48
49
50
51
language: php
php:
- 5.4
- 5.5
before_script:
## Composer
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev --no-interaction
## PHP_CodeSniffer
- pear install pear/PHP_CodeSniffer
- phpenv rehash
## 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
# PHALCON
- git clone git://github.com/phalcon/cphalcon.git $TRAVIS_BUILD_DIR/vendor/cphalcon
- cd $TRAVIS_BUILD_DIR/vendor/cphalcon/build && ./install && cd $TRAVIS_BUILD_DIR
- echo 'extension=phalcon.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
script:
## PHP_CodeSniffer
- phpcs --report=emacs --standard=PSR2 . --ignore=vendor/* --ignore=tools/* --ignore=tests/bootstrap.unit.php
## PHP Mess Detector
- phpmd . text cleancode --exclude vendor
- phpmd . text codesize --exclude vendor
- phpmd . text controversial --exclude vendor
- phpmd . text design --exclude vendor
- phpmd . text naming --exclude vendor
- phpmd . text unusedcode --exclude vendor
## PHPLOC
- php -d error_reporting=1 phploc.phar . --exclude vendor
## PHPUNIT
- mkdir -p build/unit
- mkdir -p build/coverage
- phpunit -c phpunit.xml.dist
## LINT
##| grep -v 'No syntax errors detected'
- find ./app/ -type f -name \*.php -exec php -l {} \;
after_script:
##notifications:
## email:
## david-testphalcon@latotzky.de