diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..b0341036d6b4f78e7e9c2dc28f3d209cd0e3a2da --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,30 @@ +stages: + - test + +verify-7.4: + image: grifart/php7.4-with-all-modules-and-various-tools + stage: test + interruptible: true + + script: + - composer install + - composer run verify + +verify-8.0: + image: grifart/php8.0-with-all-modules-and-various-tools + stage: test + interruptible: true + + script: + - composer install + - composer run verify + + +verify-8.1: + image: grifart/php8.1-with-all-modules-and-various-tools + stage: test + interruptible: true + + script: + - composer install + - composer run verify diff --git a/composer.json b/composer.json index 9daf2ef6ca6267d178016dbc2f3d2dc9f3be3f19..80ccb3f022a7cd3f583aa66cd662f6de434629f1 100644 --- a/composer.json +++ b/composer.json @@ -3,11 +3,12 @@ "description": "Let everyone know, that this class has not been meant for serialization.", "type": "library", "scripts": { + "verify": ["@test", "@phpstan"], "test": "tester tests", "phpstan": "phpstan analyze -l 9 src tests" }, "require": { - "php": ">=8.1" + "php": ">=7.4" }, "require-dev": { "nette/tester": "^2.4",