File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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="phpbb/googleanalytics" # 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+ - PHPBB_BRANCH="develop-ascraeus"
35+
36+ branches :
37+ only :
38+ - master
39+ - develop
40+ - /^develop-.*$/
41+
42+ install :
43+ - travis/prepare-phpbb.sh $EXTNAME $PHPBB_BRANCH
44+ - cd ../../phpBB3
45+ - travis/prepare-extension.sh $EXTNAME $PHPBB_BRANCH
46+ - travis/setup-phpbb.sh $DB $TRAVIS_PHP_VERSION
47+
48+ before_script :
49+ - travis/setup-database.sh $DB $TRAVIS_PHP_VERSION
50+
51+ script :
52+ - sh -c "if [ '$SNIFF' != '0' ]; then travis/ext-sniff.sh $DB $TRAVIS_PHP_VERSION $EXTNAME; fi"
53+ - sh -c "if [ '$IMAGE_ICC' != '0' ]; then travis/check-image-icc-profiles.sh $DB $TRAVIS_PHP_VERSION; fi"
54+ - phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/travis/phpunit-$DB-travis.xml --bootstrap ./tests/bootstrap.php
Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ googleanalytics
22===============
33
44Google Analytics Extension for phpBB 3.1
5+
6+ [ ![ Build Status] ( https://travis-ci.org/phpbb-extensions/googleanalytics.png )] ( https://travis-ci.org/phpbb-extensions/googleanalytics )
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