Skip to content

Commit

Permalink
Update build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenmaguire committed Jul 25, 2016
1 parent e0358cc commit 92178c6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Expand Up @@ -5,15 +5,18 @@ php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source --dev
- travis_retry phpenv rehash

script:
- phpunit --coverage-text --coverage-clover=coverage.clover
- ./vendor/bin/phpcs --standard=psr2 src/
- ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
7 changes: 6 additions & 1 deletion CONTRIBUTING.md
Expand Up @@ -25,8 +25,13 @@ We accept contributions via Pull Requests on [Github](https://github.com/axisofs
## Running Tests

``` bash
$ phpunit
$ ./vendor/bin/phpunit
```

## Running Code Style Linter

```bash
$ ./vendor/bin/phpcs --standard=psr2 src/
```

**Happy coding**!
4 changes: 3 additions & 1 deletion composer.json
Expand Up @@ -20,7 +20,9 @@
"php" : ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit" : "4.*"
"phpunit/phpunit": "~4.0",
"mockery/mockery": "~0.9",
"squizlabs/php_codesniffer": "~2.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 92178c6

Please sign in to comment.