Skip to content

Commit f8b4bc9

Browse files
committed
travis build scripts
1 parent 1dca6b1 commit f8b4bc9

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

.travis.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
language: php
2+
23
php:
3-
- 5.5
4-
- 5.4
4+
- '5.5'
5+
- '5.4'
56

6-
notifications:
7-
slack: jonathansblog:xcTlLtSp7QrTmEjxjH9Jq3bR
8-
email: false
97

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+
1718
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

0 commit comments

Comments
 (0)