File tree Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
+
2
3
php :
3
- - 5.5
4
- - 5.4
4
+ - ' 5.5'
5
+ - ' 5.4'
5
6
6
- notifications :
7
- slack : jonathansblog:xcTlLtSp7QrTmEjxjH9Jq3bR
8
- email : false
9
7
10
- install :
11
- - pyrus install http://phptal.org/latest.tar.gz
12
- - pear config-set auto_discover 1
13
- - pear install PHP_CodeSniffer
14
- - git clone git://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git $(pear config-get php_dir)/PHP/CodeSniffer/Standards/WordPress
15
- - phpenv rehash
16
-
8
+ before_script :
9
+ - THEME_SLUG=$(basename $(pwd))
10
+ - cd /tmp/
11
+ - git clone https://github.com/squizlabs/PHP_CodeSniffer.git phpcs
12
+ - git clone https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git wpcs
13
+ - cd phpcs
14
+ - scripts/phpcs --config-set installed_paths ../wpcs
15
+ - cd "$THEME_SLUG"
16
+ - phpenv rehash
17
+
17
18
script :
18
- - phpcs --extensions=php --standard=$(pear config-get php_dir)/PHP/CodeSniffer/Standards/WordPress .
19
+
20
+ - /tmp/wordpress/phpcs/scripts/phpcs -p -s -v -n . --standard=WordPress --extensions=php
21
+
22
+ notifications :
23
+ slack : jonathansblog:xcTlLtSp7QrTmEjxjH9Jq3bR
24
+ email : false
You can’t perform that action at this time.
0 commit comments