-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
31 lines (26 loc) · 1.01 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
language: php
php:
- 5.4
- 5.5
- hhvm
node_js:
- 0.10
before_script:
- mkdir -p build/logs
- npm install -g grunt-cli
- npm install
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev --no-interaction
script:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./vendor/bin/phpcs --standard=phpcs.xml ./src/; fi;'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./vendor/bin/phpcs --standard=phpcs.xml ./tests/; fi;'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./vendor/bin/phpmd ./src/ text phpmd.xml; fi;'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./vendor/bin/phpmd ./tests/ text phpmd.xml; fi;'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./vendor/bin/parallel-lint ./src/; fi;'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./vendor/bin/parallel-lint ./tests/; fi;'
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- grunt travis --verbose
matrix:
allow_failures:
- php: hhvm
fast_finish: true