-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
sudo: required | ||
|
||
language: php | ||
|
||
matrix: | ||
include: | ||
- php: 5.3.3 | ||
env: DB=mysqli | ||
- php: 5.3 | ||
env: DB=mysqli # MyISAM | ||
- php: 5.4 | ||
env: DB=mysqli | ||
- php: 5.4 | ||
env: DB=mysql | ||
- php: 5.4 | ||
env: DB=mariadb | ||
- php: 5.4 | ||
env: DB=postgres | ||
- php: 5.4 | ||
env: DB=sqlite3 | ||
- php: 5.5 | ||
env: DB=mysqli | ||
- php: 5.6 | ||
env: DB=mysqli | ||
- php: hhvm | ||
env: DB=mysqli | ||
allow_failures: | ||
- php: hhvm | ||
fast_finish: true | ||
|
||
env: | ||
global: | ||
- EXTNAME="dmzx/mchat" # CHANGE name of the extension HERE | ||
- SNIFF="1" # Should we run code sniffer on your code? | ||
- IMAGE_ICC="1" # Should we run icc profile sniffer on your images? | ||
- EPV="1" # Should we run EPV (Extension Pre Validator) on your code? | ||
- PHPBB_BRANCH="3.1.x" | ||
|
||
branches: | ||
only: | ||
- master | ||
- /^\d+(\.\d+)?\.x$/ | ||
|
||
install: | ||
- travis/prepare-phpbb.sh $EXTNAME $PHPBB_BRANCH | ||
- cd ../../phpBB3 | ||
- travis/prepare-extension.sh $EXTNAME $PHPBB_BRANCH | ||
- travis/setup-phpbb.sh $DB $TRAVIS_PHP_VERSION | ||
- sh -c "if [ '$EPV' != '0' -a '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysqli' ]; then cd phpBB; composer require phpbb/epv:dev-master --dev --no-interaction; cd ../; fi" | ||
|
||
before_script: | ||
- travis/setup-database.sh $DB $TRAVIS_PHP_VERSION | ||
|
||
script: | ||
- sh -c "if [ '$SNIFF' != '0' ]; then travis/ext-sniff.sh $DB $TRAVIS_PHP_VERSION $EXTNAME; fi" | ||
- sh -c "if [ '$IMAGE_ICC' != '0' ]; then travis/check-image-icc-profiles.sh $DB $TRAVIS_PHP_VERSION; fi" | ||
- phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/travis/phpunit-$DB-travis.xml --bootstrap ./tests/bootstrap.php | ||
- sh -c "if [ '$EPV' != '0' -a '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysqli' ]; then phpBB/vendor/bin/EPV.php run --dir='phpBB/ext/$EXTNAME/'; fi" |