From 1d5bd48fda305d3d4aaabee9916c8d0d73079d95 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Sun, 30 Dec 2018 14:46:00 +0000 Subject: [PATCH 1/3] Remove obsolete branch alias --- composer.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 566e67c..8073483 100755 --- a/composer.json +++ b/composer.json @@ -15,11 +15,7 @@ "require-dev": { "phpunit/PHPUnit": "~3.7@stable" }, - "extra": { - "branch-alias": { - "2.x-dev": "2.6.x-dev" - } - }, + "extra": [], "license": "BSD-2-Clause", "authors": [ { From f9b78e8fdf788cb30d6376b69bcc73fce176d01a Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Wed, 24 Jul 2019 12:16:02 +0200 Subject: [PATCH 2/3] Update Travis builds to include PHP 7 --- .travis.yml | 57 ++++++++++++----------------------------------------- 1 file changed, 13 insertions(+), 44 deletions(-) diff --git a/.travis.yml b/.travis.yml index 58d05be..cd5173a 100755 --- a/.travis.yml +++ b/.travis.yml @@ -1,45 +1,26 @@ language: php -sudo: false - -dist: precise +dist: trusty addons: apt: packages: - tidy -before_install: - - pip install --user codecov - -env: - global: - - DB=MYSQL CORE_RELEASE=3.6 - - # Turn coverage off by default, as it's expensive time wise - - COVERAGE=0 - - # The path of the module when installed by composer - - MODULE_PATH=blog - matrix: include: - - php: 5.6 - env: DB=MYSQL COVERAGE=1 - - php: 5.5 - env: DB=MYSQL CORE_RELEASE=3.2 - - php: 5.6 - env: DB=PGSQL CORE_RELEASE=3.3 - - php: 5.6 - env: DB=MYSQL CORE_RELEASE=3.4 - - php: 5.6 - env: DB=PGSQL CORE_RELEASE=3.5 - - php: 5.4 - env: DB=SQLITE - - php: 5.4 - env: DB=MYSQL - - php: 7.1 + - php: '5.6' env: DB=MYSQL CORE_RELEASE=3.6 + - php: '7.0' + env: DB=MYSQL CORE_RELEASE=3.7 + - php: '7.1' + env: DB=PGSQL CORE_RELEASE=3.7 + - php: '7.1' + env: DB=MYSQL CORE_RELEASE=3.7 + - php: '7.2' + env: DB=PGSQL CORE_RELEASE=3.7 + - php: '7.3' + env: DB=MYSQL CORE_RELEASE=3.7 before_script: @@ -49,17 +30,5 @@ before_script: - php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss --require "silverstripe/comments" --require "silverstripe/widgets" - cd ~/builds/ss -#Execute tests with or without coverage script: - # Execute tests with no coverage. This is the fastest option - - "if [ \"$COVERAGE\" = \"0\" ]; then vendor/bin/phpunit $MODULE_PATH/tests/; fi" - - # Execute tests with coverage. Do this for a small - - "if [ \"$COVERAGE\" = \"1\" ]; then vendor/bin/phpunit --coverage-clover=coverage.clover $MODULE_PATH/tests/; fi" - -#Upload coverage even if there is a failure -after_script: - - "if [ \"$COVERAGE\" = \"1\" ]; then mv coverage.clover ~/build/$TRAVIS_REPO_SLUG/; fi" - - cd ~/build/$TRAVIS_REPO_SLUG - - wget https://scrutinizer-ci.com/ocular.phar - - "if [ \"$COVERAGE\" = \"1\" ]; then travis_retry codecov && travis_retry php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi" + - vendor/bin/phpunit blog/tests From f6873d084ad3a1b7c3014a2a40bff6c1acc90bb6 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Wed, 24 Jul 2019 12:19:17 +0200 Subject: [PATCH 3/3] Update PHPUnit to 5.7 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8073483..8e6f27c 100755 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "silverstripe/tagfield": "^1.0" }, "require-dev": { - "phpunit/PHPUnit": "~3.7@stable" + "phpunit/phpunit": "^5.7" }, "extra": [], "license": "BSD-2-Clause",