diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e1e35f72..6b04b1a4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,7 +5,7 @@ env: SNIFF: 1 # Run code sniffer on your code? 1 or 0 IMAGE_ICC: 0 # Run icc profile sniffer on your images? 1 or 0 EPV: 1 # Run EPV (Extension Pre Validator) on your code? 1 or 0 - EXECUTABLE_FILES: 1 # Run check for executable files? 1 or 0 + EXECUTABLE_FILES: 0 # Run check for executable files? 1 or 0 PHPBB_BRANCH: 3.3.x # The phpBB branch to run tests on on: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index eb5434c1..00000000 --- a/.travis.yml +++ /dev/null @@ -1,80 +0,0 @@ -language: php -sudo: required -dist: precise - -matrix: - include: - - php: 5.4 - env: DB=none;NOTESTS=1 - - php: 5.4 - env: DB=mysqli # MyISAM - - 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.4 - env: DB=mysqli;SLOWTESTS=1 - - php: 5.5 - env: DB=mysqli - - php: 5.6 - env: DB=mysqli - - php: 7.0 - env: DB=mysqli - - php: 7.1 - env: DB=mysqli - - php: nightly - env: DB=mysqli - - php: hhvm - env: DB=mysqli - allow_failures: - - php: hhvm - - php: nightly - fast_finish: true - -env: - global: - - EXTNAME="board3/portal" - - SNIFF="1" # Should we run code sniffer on your code? - - IMAGE_ICC="0" # Should we run icc profile sniffer on your images? - - COVERAGE="1" # Should we send coverage? - - EPV="1" # Should we run EPV (Extension Pre Validator) on your code? - - SPELLCHECK="1" # Should the php files be checked for obvious spelling errors? - - PHPBB_BRANCH="3.2.x" - -branches: - except: - - 2.0.x - - develop-1_0_X - -install: - - php composer.phar install --dev --no-interaction --prefer-source - - 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 [ '$COVERAGE' != '0' ]; then ../board3/Board3-Portal/travis/prepare-coverage.sh $DB $TRAVIS_PHP_VERSION; fi" - -before_script: - - travis/setup-database.sh $DB $TRAVIS_PHP_VERSION - - mkdir build/logs - - chmod +wx build/logs - -script: - - sh -c "if [ '$SNIFF' != '0' ]; then travis/ext-sniff.sh $DB $TRAVIS_PHP_VERSION $EXTNAME $NOTESTS; fi" - - sh -c "if [ '$IMAGE_ICC' != '0' ]; then travis/check-image-icc-profiles.sh $DB $TRAVIS_PHP_VERSION $NOTESTS; fi" - - sh -c "if [ '$NOTESTS' != '1' ]; then ../board3/Board3-Portal/travis/run-testsuite.sh $DB $TRAVIS_PHP_VERSION; fi" - - sh -c "if [ '$EPV' != '0' ]; then ../board3/Board3-Portal/travis/run-epv.sh $DB $TRAVIS_PHP_VERSION $EXTNAME; fi" - -after_script: - - sh -c "if [ '$COVERAGE' != '0' ]; then ../board3/Board3-Portal/travis/send-coverage.sh $DB $TRAVIS_PHP_VERSION; fi" - -notifications: - email: - recipients: - - admin@m-a-styles.de - on_success: change - on_failure: change diff --git a/travis/prepare-coverage.sh b/travis/prepare-coverage.sh deleted file mode 100755 index 9b409088..00000000 --- a/travis/prepare-coverage.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# -# This file is part of the Board3 Portal package. -# -# @copyright (c) Board3 Group -# @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 -# -set -e -set -x - -DB=$1 -TRAVIS_PHP_VERSION=$2 - -if [ "$TRAVIS_PHP_VERSION" == "5.5" -a "$DB" == "mysqli" ] -then - sed -n '1h;1!H;${;g;s/<\/php>/<\/php>\n\t\n\t\t\n\t\t\t..\/<\/directory>\n\t\t\t\n\t\t\t\t..\/tests\/<\/directory>\n\t\t\t\t..\/develop\/<\/directory>\n\t\t\t\t..\/migrations\/<\/directory>\n\t\t\t\t..\/language\/<\/directory>\n\t\t\t\t..\/vendor\/<\/directory>\n\t\t\t<\/exclude>\n\t\t<\/whitelist>\n\t<\/filter>/g;p;}' phpBB/ext/board3/portal/travis/phpunit-mysqli-travis.xml &> phpBB/ext/board3/portal/travis/phpunit-mysqli-travis.xml.bak - cp phpBB/ext/board3/portal/travis/phpunit-mysqli-travis.xml.bak phpBB/ext/board3/portal/travis/phpunit-mysqli-travis.xml -fi diff --git a/travis/prepare-phpbb.sh b/travis/prepare-phpbb.sh deleted file mode 100755 index 36128894..00000000 --- a/travis/prepare-phpbb.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -# -# This file is part of the phpBB Forum Software package. -# -# @copyright (c) phpBB Limited -# @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 - -# Clone trimmessage tool -git clone --depth=1 "git://github.com/nickvergessen/phpbb-tool-trimmessage.git" "phpBB3/phpBB/ext/nickvergessen/trimmessage" diff --git a/travis/run-epv.sh b/travis/run-epv.sh deleted file mode 100755 index 5c6aebda..00000000 --- a/travis/run-epv.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# -# This file is part of the Board3 Portal package. -# -# @copyright (c) Board3 Group -# @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 -# -set -e -set -x - -DB=$1 -TRAVIS_PHP_VERSION=$2 -EXTNAME=$3 - -if [ "$TRAVIS_PHP_VERSION" == "5.5" -a "$DB" == "mysqli" ] -then - phpBB/ext/$EXTNAME/vendor/bin/EPV.php run --dir="phpBB/ext/$EXTNAME/" -fi diff --git a/travis/run-testsuite.sh b/travis/run-testsuite.sh deleted file mode 100755 index 2c80576e..00000000 --- a/travis/run-testsuite.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# -# This file is part of the Board3 Portal package. -# -# @copyright (c) Board3 Group -# @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 -# -set -e -set -x - -DB=$1 -TRAVIS_PHP_VERSION=$2 - -if [ "$TRAVIS_PHP_VERSION" == "5.5" -a "$DB" == "mysqli" ] -then - phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/travis/phpunit-$DB-travis.xml --bootstrap ./tests/bootstrap.php --coverage-clover build/logs/clover.xml -else - phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/travis/phpunit-$DB-travis.xml --bootstrap ./tests/bootstrap.php -fi diff --git a/travis/send-coverage.sh b/travis/send-coverage.sh deleted file mode 100755 index e0c3cb99..00000000 --- a/travis/send-coverage.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# -# This file is part of the Board3 Portal package. -# -# @copyright (c) Board3 Group -# @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 -# -set -e -set -x - -DB=$1 -TRAVIS_PHP_VERSION=$2 - -if [ "$TRAVIS_PHP_VERSION" == "5.5" -a "$DB" == "mysqli" ] -then - cd ../board3/Board3-Portal - wget https://scrutinizer-ci.com/ocular.phar - php ocular.phar code-coverage:upload --access-token="681b2ead2ea75fe4ce287bae485a916f47034c76f39209a9397545058e7c045e" --format=php-clover ../../phpBB3/build/logs/clover.xml -fi