diff options
author | Andreas Fischer <bantu@phpbb.com> | 2015-02-12 22:12:32 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2015-02-12 22:12:32 +0100 |
commit | 0a775e043369dc6553c485596f238e67437262d1 (patch) | |
tree | e5a7007b386d28650227603bca74b8c578dd46be | |
parent | 2787e799e17ee1358246087fe44ecf7ca9c4f9ed (diff) | |
download | forums-0a775e043369dc6553c485596f238e67437262d1.tar forums-0a775e043369dc6553c485596f238e67437262d1.tar.gz forums-0a775e043369dc6553c485596f238e67437262d1.tar.bz2 forums-0a775e043369dc6553c485596f238e67437262d1.tar.xz forums-0a775e043369dc6553c485596f238e67437262d1.zip |
[ticket/13599] Remove Travis CI PHP 5.2 environment. No longer supported.
PHPBB3-13599
-rw-r--r-- | .travis.yml | 6 | ||||
-rwxr-xr-x | travis/install-phpunit-5-2.sh | 22 | ||||
-rw-r--r-- | travis/phpunit-mysql-5-2-travis.xml | 44 |
3 files changed, 2 insertions, 70 deletions
diff --git a/.travis.yml b/.travis.yml index 01e2553f3a..bb8f13c400 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: php php: - - 5.2 - 5.3.3 - 5.3 - 5.4 @@ -17,15 +16,14 @@ before_script: - sh -c "if [ '$DB' = 'mariadb' ]; then travis/setup-mariadb.sh; fi" - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.3' -a '$DB' = 'mysql' ]; then mysql -e 'SET GLOBAL storage_engine=MyISAM;'; fi" - sh -c "if [ '$DB' = 'mysql' -o '$DB' = 'mariadb' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi" - - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.2' ]; then travis/install-phpunit-5-2.sh; fi" - cd phpBB - - sh -c "if [ '$TRAVIS_PHP_VERSION' != '5.2' ]; then php ../composer.phar install --dev --no-interaction --prefer-source; fi" + - php ../composer.phar install --dev --no-interaction --prefer-source - cd .. - sh -c "if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.3.19', '>=');"` = "1" ]; then travis/setup-webserver.sh; fi" - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.3.3' -a '$DB' = 'mysql' ]; then sudo apt-get update; sudo apt-get install -y parallel libimage-exiftool-perl; fi" script: - - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.2' ]; then php -d include_path='.:phpunit' phpunit/phpunit.php --configuration travis/phpunit-$DB-5-2-travis.xml; else phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml; fi" + - phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.3.3' -a '$DB' = 'mysql' -a '$TRAVIS_PULL_REQUEST' != 'false' ]; then git-tools/commit-msg-hook-range.sh origin/$TRAVIS_BRANCH..FETCH_HEAD; fi" - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.3.3' -a '$DB' = 'mysql' ]; then find . -type f -not -path './phpBB/vendor/*' -iregex '.*\.\(gif\|jpg\|jpeg\|png\)$' | parallel --gnu --keep-order 'phpBB/develop/strip_icc_profiles.sh {}' || exit 1; fi" diff --git a/travis/install-phpunit-5-2.sh b/travis/install-phpunit-5-2.sh deleted file mode 100755 index 28f9069960..0000000000 --- a/travis/install-phpunit-5-2.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -# -# @copyright (c) 2015 phpBB Group -# @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 -# - -# $1 - URL to .tar.gz -download() { - wget -q -O - "$1" | tar xzvf - --strip-components 1 -} - -mkdir phpunit -cd phpunit -download https://github.com/sebastianbergmann/phpunit/archive/3.6.12.tar.gz -download https://github.com/sebastianbergmann/php-file-iterator/archive/1.3.1.tar.gz -download https://github.com/sebastianbergmann/php-code-coverage/archive/1.1.3.tar.gz -download https://github.com/sebastianbergmann/php-token-stream/archive/1.1.3.tar.gz -download https://github.com/sebastianbergmann/php-text-template/archive/1.1.2.tar.gz -download https://github.com/sebastianbergmann/php-timer/archive/1.0.2.tar.gz -download https://github.com/sebastianbergmann/phpunit-mock-objects/archive/1.1.1.tar.gz -download https://github.com/sebastianbergmann/dbunit/archive/1.1.2.tar.gz -cd .. diff --git a/travis/phpunit-mysql-5-2-travis.xml b/travis/phpunit-mysql-5-2-travis.xml deleted file mode 100644 index e99f8d6cee..0000000000 --- a/travis/phpunit-mysql-5-2-travis.xml +++ /dev/null @@ -1,44 +0,0 @@ -<?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="true" - strict="true" - verbose="true" - bootstrap="../tests/bootstrap.php"> - <testsuites> - <testsuite name="phpBB Test Suite"> - <directory suffix="_test.php">../tests/</directory> - <exclude>tests/functional</exclude> - <exclude>tests/lint_test.php</exclude> - </testsuite> - <testsuite name="phpBB Lint Test"> - <file>tests/lint_test.php</file> - </testsuite> - <testsuite name="phpBB Functional Tests"> - <directory suffix="_test.php" phpVersion="5.3.19" phpVersionOperator=">=">../tests/functional</directory> - </testsuite> - </testsuites> - - <groups> - <exclude> - <group>slow</group> - </exclude> - </groups> - - <php> - <server name="PHPBB_TEST_DBMS" value="mysqli" /> - <server name="PHPBB_TEST_DBHOST" value="0.0.0.0" /> - <server name="PHPBB_TEST_DBPORT" value="3306" /> - <server name="PHPBB_TEST_DBNAME" value="phpbb_tests" /> - <server name="PHPBB_TEST_DBUSER" value="root" /> - <server name="PHPBB_TEST_DBPASSWD" value="" /> - <server name="PHPBB_TEST_TABLE_PREFIX" value="phpbb_"/> - <server name="PHPBB_FUNCTIONAL_URL" value="http://localhost/" /> - </php> -</phpunit> |