From 45fe7ce5d967e1c31dcb0a3d11ff2f7317de3c5a Mon Sep 17 00:00:00 2001 From: Jon McPartland Date: Tue, 5 Apr 2022 15:42:56 +0100 Subject: [PATCH 1/4] Scaffold Travis CI config --- .travis.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5dbddd6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +os: linux +dist: bionic +language: php +php: + - 7.0 + - 7.1 + - 7.2 + - 7.3 + - 7.4 + - 8.0 + - 8.1 +cache: + directories: + - "$HOME/.composer/cache" +before_install: +- phpenv config-rm xdebug.ini +install: +- composer install +script: +- composer run all-checks From c0bbc6740de0a9128496a3a40d1d7eed75a1ac25 Mon Sep 17 00:00:00 2001 From: Jon McPartland Date: Tue, 5 Apr 2022 15:49:02 +0100 Subject: [PATCH 2/4] Remove incompatible PHP version support --- .travis.yml | 2 -- composer.json | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5dbddd6..1b1a887 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,6 @@ os: linux dist: bionic language: php php: - - 7.0 - - 7.1 - 7.2 - 7.3 - 7.4 diff --git a/composer.json b/composer.json index 901d7d6..c0fe3e8 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "squizlabs/php_codesniffer" : "^3.6.2", "wp-coding-standards/wpcs": "^2.3.0", "automattic/vipwpcs": "^2.3.3", - "php": ">=7.0" + "php": ">=7.2" }, "require-dev": { "phpcsstandards/phpcsdevtools": "1.1.0", From d5664bdb33551c9b2f18f6b5057965be22abef7a Mon Sep 17 00:00:00 2001 From: Jon McPartland Date: Tue, 5 Apr 2022 15:55:16 +0100 Subject: [PATCH 3/4] Update supported PHP version --- .travis.yml | 2 -- composer.json | 10 +++++----- composer.lock | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1b1a887..d930245 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,8 +5,6 @@ php: - 7.2 - 7.3 - 7.4 - - 8.0 - - 8.1 cache: directories: - "$HOME/.composer/cache" diff --git a/composer.json b/composer.json index c0fe3e8..7ef02a9 100644 --- a/composer.json +++ b/composer.json @@ -8,13 +8,13 @@ "squizlabs/php_codesniffer" : "^3.6.2", "wp-coding-standards/wpcs": "^2.3.0", "automattic/vipwpcs": "^2.3.3", - "php": ">=7.2" + "php": ">=7.2 <8" }, "require-dev": { - "phpcsstandards/phpcsdevtools": "1.1.0", - "phpcompatibility/php-compatibility": "9.3.5", - "php-parallel-lint/php-parallel-lint": "1.3.2", - "phpunit/phpunit": "7.5.20" + "phpcsstandards/phpcsdevtools": "^1.1.0", + "phpcompatibility/php-compatibility": "^9.3.5", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpunit/phpunit": "^7.5.20" }, "config": { "allow-plugins": { diff --git a/composer.lock b/composer.lock index 9fed0b2..db9f734 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0c4bf648a6e2c23b9f18c3c507f444dd", + "content-hash": "e8a1c33e2adce70857abfcfbd0c0a7eb", "packages": [ { "name": "automattic/vipwpcs", @@ -2180,7 +2180,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": ">=7.0" + "php": ">=7.2 <8" }, "platform-dev": [], "plugin-api-version": "2.1.0" From 7a897fb7105f9a5243620b8d644c60ff2317b15d Mon Sep 17 00:00:00 2001 From: Jon McPartland Date: Tue, 5 Apr 2022 16:35:26 +0100 Subject: [PATCH 4/4] Add list of files/dirs to ignore when creating archives --- composer.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/composer.json b/composer.json index 901d7d6..ceb670c 100644 --- a/composer.json +++ b/composer.json @@ -33,6 +33,15 @@ "email": "jon@bigbite.net" } ], + "archive": { + "exclude": [ + "/.editorconfig", + "/.gitignore", + "/.phpcs.xml.dist", + "/Tests", + "/phpunit.xml.dist" + ] + }, "scripts-descriptions": { "lint": "Runs PHP syntax error checks", "phpcs": "Runs PHP coding standard checks",