-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
147 additions
and
160 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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
tests/ export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
travis/ export-ignore | ||
.travis.yml export-ignore | ||
gulpfile.js export-ignore | ||
.gitignore export-ignore | ||
.gitattributes export-ignore | ||
package.json export-ignore | ||
gulpfile.js export-ignore | ||
phpunit.xml.dist export-ignore |
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 |
---|---|---|
@@ -1,34 +1,54 @@ | ||
language: php | ||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
# 5.6 | ||
|
||
env: | ||
- DB=mysql | ||
|
||
before_script: | ||
# MUST UPDATE THIS FOR YOUR EXTENSION | ||
- VENDOR="vse" | ||
- NAME="abbc3" | ||
|
||
# clone test framework | ||
- git clone "git://github.com/phpbb-extensions/test-framework.git" "./../../test-framework" | ||
|
||
# run the prepare-travis.sh file from the cloned repo to finish the setup | ||
- ./../../test-framework/prepare-travis.sh "$VENDOR" "$NAME" "$DB" | ||
|
||
# Go to the root phpBB repository that was cloned from prepare-travis.sh, | ||
# so the script path and relative paths are correct | ||
- cd ../../phpbb | ||
|
||
script: | ||
- ./phpBB/vendor/bin/phpunit --configuration ./phpBB/ext/$VENDOR/$NAME/travis/phpunit-$DB-travis.xml | ||
|
||
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="vse/abbc3" | ||
- SNIFF="0" # Should we run code sniffer on your code? | ||
- IMAGE_ICC="1" # Should we run icc profile sniffer on your images? | ||
- PHPBB_BRANCH="develop-ascraeus" | ||
|
||
#branches: | ||
# only: | ||
# - master | ||
# - develop | ||
# - /^develop-.*$/ | ||
|
||
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 | ||
|
||
before_script: | ||
- travis/setup-database.sh $DB $TRAVIS_PHP_VERSION | ||
|
||
script: | ||
- sh -c "if [ '$SNIFF' != '0' ]; then travis/phing-sniff.sh $DB $TRAVIS_PHP_VERSION; 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 |
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
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,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit backupGlobals="true" | ||
backupStaticAttributes="true" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
syntaxCheck="false" | ||
verbose="true" | ||
bootstrap="../../../../tests/bootstrap.php" | ||
> | ||
<testsuites> | ||
<testsuite name="Extension Test Suite"> | ||
<directory suffix="_test.php">./tests</directory> | ||
<exclude>./tests/functional</exclude> | ||
</testsuite> | ||
<testsuite name="Extension Functional Tests"> | ||
<directory suffix="_test.php" phpVersion="5.3.19" phpVersionOperator=">=">./tests/functional/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<blacklist> | ||
<directory>./tests/</directory> | ||
</blacklist> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">./</directory> | ||
<exclude> | ||
<directory suffix=".php">./language/</directory> | ||
<directory suffix=".php">./migrations/</directory> | ||
<directory suffix=".php">./tests/</directory> | ||
</exclude> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
#!/bin/bash | ||
# | ||
# This file is part of the phpBB Forum Software package. | ||
# | ||
# @copyright (c) phpBB Limited <https://www.phpbb.com> | ||
# @license GNU General Public License, version 2 (GPL-2.0) | ||
# | ||
# For full copyright and license information, please see | ||
# the docs/CREDITS.txt file. | ||
# | ||
set -e | ||
set -x | ||
|
||
EXTNAME=$1 | ||
BRANCH=$2 | ||
EXTPATH_TEMP=$3 | ||
|
||
# Copy extension to a temp folder | ||
mkdir ../../tmp | ||
cp -R . ../../tmp | ||
cd ../../ | ||
|
||
# Clone phpBB | ||
git clone --depth=1 "git://github.com/phpbb/phpbb.git" "phpBB3" --branch=$BRANCH |