Skip to content

Commit f4782e0

Browse files
committed
Add EPV testing
1 parent b58880c commit f4782e0

3 files changed

Lines changed: 460 additions & 0 deletions

File tree

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ env:
3131
- EXTNAME="phpbb/googleanalytics" # CHANGE name of the extension HERE
3232
- SNIFF="1" # Should we run code sniffer on your code?
3333
- IMAGE_ICC="1" # Should we run icc profile sniffer on your images?
34+
- EPV="1" # Should we run EPV (Extension Pre Validator) on your code?
3435
- PHPBB_BRANCH="develop-ascraeus"
3536

3637
branches:
@@ -40,6 +41,7 @@ branches:
4041
- /^develop-.*$/
4142

4243
install:
44+
- composer install --dev --no-interaction --prefer-source
4345
- travis/prepare-phpbb.sh $EXTNAME $PHPBB_BRANCH
4446
- cd ../../phpBB3
4547
- travis/prepare-extension.sh $EXTNAME $PHPBB_BRANCH
@@ -52,3 +54,4 @@ script:
5254
- sh -c "if [ '$SNIFF' != '0' ]; then travis/ext-sniff.sh $DB $TRAVIS_PHP_VERSION $EXTNAME; fi"
5355
- sh -c "if [ '$IMAGE_ICC' != '0' ]; then travis/check-image-icc-profiles.sh $DB $TRAVIS_PHP_VERSION; fi"
5456
- phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/travis/phpunit-$DB-travis.xml --bootstrap ./tests/bootstrap.php
57+
- sh -c "if [ '$EPV' != '0' ] && [ '$TRAVIS_PHP_VERSION' = '5.5' ] && [ '$DB' = 'mysqli' ]; then phpBB/ext/$EXTNAME/vendor/bin/EPV.php run --dir='phpBB/ext/$EXTNAME/'; fi"

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
"php": ">=5.3.3",
3939
"composer/installers": "~1.0"
4040
},
41+
"require-dev": {
42+
"phpbb/epv": "dev-master"
43+
},
4144
"extra": {
4245
"display-name": "Google Analytics",
4346
"soft-require": {

0 commit comments

Comments
 (0)