From 23660afe5c27b96b2299ad3dd110663266b95162 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Kucha=C5=99?= <honza.kuchar@grifart.cz>
Date: Mon, 21 Mar 2022 13:32:38 +0100
Subject: [PATCH] added CI

---
 .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++
 composer.json  |  3 ++-
 2 files changed, 32 insertions(+), 1 deletion(-)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..b034103
--- /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 9daf2ef..80ccb3f 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",
-- 
GitLab