Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilos committed Feb 9, 2016
1 parent eb5fd57 commit 643804d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 63 deletions.
20 changes: 16 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,27 @@ language: php
php:
- 5.5
- 5.6
- 7.0
- hhvm

before_script:
matrix:
allow_failures:
- php: hhvm
include:
- php: 5.5
env: COMPOSER_FLAGS="--prefer-lowest"

before_install:
- composer self-update
- composer --version
- wget http://get.sensiolabs.org/php-cs-fixer.phar -O php-cs-fixer.phar
- COMPOSER_ROOT_VERSION=dev-master composer install

install:
- COMPOSER_ROOT_VERSION=dev-master composer update --prefer-source $COMPOSER_FLAGS

script:
- php php-cs-fixer.phar fix --dry-run -v
- bin/phpunit --coverage-clover build/logs/clover.xml

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- php bin/coveralls -v
10 changes: 2 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@
},
"require-dev": {
"phpunit/phpunit": "~4.5",
"monolog/monolog": "~1.3"
},
"scripts": {
"post-install-cmd": [
"bash contrib/setup.sh"
],
"post-update-cmd": [
]
"monolog/monolog": "~1.3",
"satooshi/php-coveralls": "~0.6"
},
"config": {
"bin-dir": "bin"
Expand Down
39 changes: 0 additions & 39 deletions contrib/pre-commit

This file was deleted.

12 changes: 0 additions & 12 deletions contrib/setup.sh

This file was deleted.

0 comments on commit 643804d

Please sign in to comment.