Skip to content

Commit

Permalink
Merge 320c868 into 43760fa
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekman committed Oct 23, 2018
2 parents 43760fa + 320c868 commit 4819a4b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 7 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Expand Up @@ -4,13 +4,18 @@ php:
- 7.0
- 7.1
- 7.2
- 7.3
- hhvm

install: composer install --no-interaction --classmap-authoritative

script: vendor/bin/phpunit --configuration phpunit.xml
script:
- chmod +x run-phpunit.sh
- ./run-phpunit.sh

after_success: vendor/bin/php-coveralls --verbose
after_success:
- composer require --no-interaction php-coveralls/php-coveralls:^2.0
- vendor/bin/php-coveralls --verbose

notifications:
email: false
Expand Down
5 changes: 0 additions & 5 deletions composer.json
Expand Up @@ -35,10 +35,5 @@
},
"require": {
"php": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0",
"friendsofphp/php-cs-fixer": "^2.0",
"php-coveralls/php-coveralls": "^2.0"
}
}
12 changes: 12 additions & 0 deletions run-php-cs-fixer.sh
@@ -0,0 +1,12 @@
#!/bin/bash

#
# Runs code standard fixer without having the need to specify it as a
# Composer dependency.
#

composer require --no-interaction friendsofphp/php-cs-fixer:^2.0

vendor/bin/php-cs-fixer --config=.php_cs.dist --no-interaction fix

composer remove --no-interaction friendsofphp/php-cs-fixer
17 changes: 17 additions & 0 deletions run-phpunit.sh
@@ -0,0 +1,17 @@
#!/bin/bash

#
# Runs code standard fixer without having the need to specify it as a
# Composer dependency.
#

if [ $TRAVIS ]; then
# No need to install PHPunit
phpunit --configuration phpunit.xml
else
composer require --no-interaction phpunit/phpunit:^6.0

vendor/bin/phpunit --configuration phpunit.xml

composer remove --no-interaction phpunit/phpunit
fi;

0 comments on commit 4819a4b

Please sign in to comment.