File tree 4 files changed +122
-0
lines changed
4 files changed +122
-0
lines changed Original file line number Diff line number Diff line change
1
+ language : php
2
+
3
+ matrix :
4
+ include :
5
+ - php : 5.3.3
6
+ env : DB=mysqli
7
+ - php : 5.3
8
+ env : DB=mysqli # MyISAM
9
+ - php : 5.4
10
+ env : DB=mysqli
11
+ - php : 5.4
12
+ env : DB=mysql
13
+ - php : 5.4
14
+ env : DB=mariadb
15
+ - php : 5.4
16
+ env : DB=postgres
17
+ - php : 5.4
18
+ env : DB=sqlite3
19
+ - php : 5.5
20
+ env : DB=mysqli
21
+ - php : 5.6
22
+ env : DB=mysqli
23
+ - php : hhvm
24
+ env : DB=mysqli
25
+ allow_failures :
26
+ - php : hhvm
27
+ fast_finish : true
28
+
29
+ env :
30
+ global :
31
+ - EXTNAME="robertheim/topictags" # CHANGE name of the extension HERE
32
+ - SNIFF="1" # Should we run code sniffer on your code?
33
+ - 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?
35
+ - PHPBB_BRANCH="develop-ascraeus"
36
+
37
+ branches :
38
+ only :
39
+ - master
40
+ - develop
41
+ - /^develop-.*$/
42
+
43
+ install :
44
+ - composer install --dev --no-interaction --prefer-source
45
+ - travis/prepare-phpbb.sh $EXTNAME $PHPBB_BRANCH
46
+ - cd ../../phpBB3
47
+ - travis/prepare-extension.sh $EXTNAME $PHPBB_BRANCH
48
+ - travis/setup-phpbb.sh $DB $TRAVIS_PHP_VERSION
49
+
50
+ before_script :
51
+ - travis/setup-database.sh $DB $TRAVIS_PHP_VERSION
52
+
53
+ script :
54
+ - sh -c "if [ '$SNIFF' != '0' ]; then travis/ext-sniff.sh $DB $TRAVIS_PHP_VERSION $EXTNAME; fi"
55
+ - sh -c "if [ '$IMAGE_ICC' != '0' ]; then travis/check-image-icc-profiles.sh $DB $TRAVIS_PHP_VERSION; fi"
56
+ - 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.3.3' ] && [ '$DB' = 'mysqli' ]; then phpBB/ext/$EXTNAME/vendor/bin/EPV.php run --dir='phpBB/ext/$EXTNAME/'; fi"
Original file line number Diff line number Diff line change 18
18
"require" : {
19
19
"php" : " >=5.3.3"
20
20
},
21
+ "require-dev" : {
22
+ "phpbb/epv" : " dev-master"
23
+ },
21
24
"extra" : {
22
25
"display-name" : " RH Topic Tags" ,
23
26
"soft-require" : {
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+
3
+ <phpunit backupGlobals =" true"
4
+ backupStaticAttributes =" true"
5
+ colors =" true"
6
+ convertErrorsToExceptions =" true"
7
+ convertNoticesToExceptions =" true"
8
+ convertWarningsToExceptions =" true"
9
+ processIsolation =" false"
10
+ stopOnFailure =" false"
11
+ syntaxCheck =" false"
12
+ verbose =" true"
13
+ bootstrap =" ../../../../tests/bootstrap.php"
14
+ >
15
+ <testsuites >
16
+ <testsuite name =" Extension Test Suite" >
17
+ <directory suffix =" _test.php" >./tests</directory >
18
+ <exclude >./tests/functional</exclude >
19
+ </testsuite >
20
+ <testsuite name =" Extension Functional Tests" >
21
+ <directory suffix =" _test.php" phpVersion =" 5.3.19" phpVersionOperator =" >=" >./tests/functional/</directory >
22
+ </testsuite >
23
+ </testsuites >
24
+
25
+ <filter >
26
+ <blacklist >
27
+ <directory >./tests/</directory >
28
+ </blacklist >
29
+ <whitelist processUncoveredFilesFromWhitelist =" true" >
30
+ <directory suffix =" .php" >./</directory >
31
+ <exclude >
32
+ <directory suffix =" .php" >./language/</directory >
33
+ <directory suffix =" .php" >./migrations/</directory >
34
+ <directory suffix =" .php" >./tests/</directory >
35
+ </exclude >
36
+ </whitelist >
37
+ </filter >
38
+ </phpunit >
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # This file is part of the phpBB Forum Software package.
4
+ #
5
+ # @copyright (c) phpBB Limited <https://www.phpbb.com>
6
+ # @license GNU General Public License, version 2 (GPL-2.0)
7
+ #
8
+ # For full copyright and license information, please see
9
+ # the docs/CREDITS.txt file.
10
+ #
11
+ set -e
12
+ set -x
13
+
14
+ EXTNAME=$1
15
+ BRANCH=$2
16
+ EXTPATH_TEMP=$3
17
+
18
+ # Copy extension to a temp folder
19
+ mkdir ../../tmp
20
+ cp -R . ../../tmp
21
+ cd ../../
22
+
23
+ # Clone phpBB
24
+ git clone --depth=1 " git://github.com/phpbb/phpbb.git" " phpBB3" --branch=$BRANCH
You can’t perform that action at this time.
0 commit comments