forked from jemproject/JEM-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (27 loc) · 1.02 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
language: php
php:
# using major version aliases
- 5.3
# - 5.4
- 5.5
env:
- DB=mysql
notifications:
email: false
before_script:
- pear config-set auto_discover 1
- pear install PHP_CodeSniffer
- pear install phpunit/phpcpd
- pear channel-discover pear.phpmd.org
# - pear channel-discover pear.pdepend.org
- pear install phpmd/PHP_PMD
- phpenv rehash
- git clone git://github.com/joomla/coding-standards.git $(pear config-get php_dir)/PHP/CodeSniffer/Standards/Joomla
## - export WP_TESTS_DIR=/tmp/wordpress-tests/
## - bash ci/bin/install-wp-tests.sh wordpress_test root '' ${WP_VERSION}
script:
- find . -name '*.php' -exec php -lf {} \;
# - phpcs -s -n --ignore=/site/classes/iCal*,/site/classes/Zebra*,/admin/classes/Snoopy* --standard=Joomla .
- phpcpd --exclude /site/classes/iCal*,/site/classes/Zebra*,/admin/classes/Snoopy* .
- phpmd . --exclude /site/classes/iCal*,/site/classes/Zebra*,/admin/classes/Snoopy* text codesize,unusedcode,naming,design
# - phpunit