From 3e83b2c56eebcd37f6b9fe27fe27f8da6b80a218 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pudil?= <me@jiripudil.cz>
Date: Mon, 30 Nov 2020 10:37:02 +0100
Subject: [PATCH 1/4] support PHP 8

---
 .travis.yml   | 1 +
 composer.json | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 1628152..96bc67d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,6 +5,7 @@ php:
 - 7.2
 - 7.3
 - 7.4
+- 8.0
 
 before_script:
 - composer selfupdate
diff --git a/composer.json b/composer.json
index 5cb534d..d1c88ec 100644
--- a/composer.json
+++ b/composer.json
@@ -7,7 +7,7 @@
 		"test": "vendor/bin/phpstan analyse -c tests/phpstan-config.neon --error-format oneline --no-progress --no-interaction"
 	},
     "require": {
-        "php": "^7.1",
+        "php": ">=7.1",
         "phpstan/phpstan": "^0.12"
     },
     "license": "MIT",

From ba618005b4af6a958ee6233752c845d819f7672a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pudil?= <me@jiripudil.cz>
Date: Mon, 30 Nov 2020 12:29:07 +0100
Subject: [PATCH 2/4] travis doesn't have stable PHP 8.0 yet :(

---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 96bc67d..b202a6e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,7 +5,7 @@ php:
 - 7.2
 - 7.3
 - 7.4
-- 8.0
+- nightly
 
 before_script:
 - composer selfupdate

From 638392daad31cdbf1caafe9135b64ac82b52ffb2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pudil?= <me@jiripudil.cz>
Date: Mon, 30 Nov 2020 12:38:50 +0100
Subject: [PATCH 3/4] use more specific version constraint
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Co-authored-by: Jan Kuchaƙ <honza.kuchar@grifart.cz>
---
 composer.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/composer.json b/composer.json
index d1c88ec..3c621b0 100644
--- a/composer.json
+++ b/composer.json
@@ -7,7 +7,7 @@
 		"test": "vendor/bin/phpstan analyse -c tests/phpstan-config.neon --error-format oneline --no-progress --no-interaction"
 	},
     "require": {
-        "php": ">=7.1",
+        "php": "^7.1 || ^8.0",
         "phpstan/phpstan": "^0.12"
     },
     "license": "MIT",

From 31fc9e104ef1b1550e6aa3d8d9cfb5786a3343ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pudil?= <me@jiripudil.cz>
Date: Mon, 30 Nov 2020 12:41:43 +0100
Subject: [PATCH 4/4] replace travis with github actions

---
 .github/workflows/test.yml | 27 +++++++++++++++++++++++++++
 .travis.yml                | 14 --------------
 2 files changed, 27 insertions(+), 14 deletions(-)
 create mode 100644 .github/workflows/test.yml
 delete mode 100644 .travis.yml

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..680aa29
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,27 @@
+name: Tests
+on:
+  pull_request:
+    branches: [master]
+  push:
+    branches: [master]
+
+jobs:
+  verify:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        php:
+          - '7.1'
+          - '7.2'
+          - '7.3'
+          - '7.4'
+          - '8.0'
+      fail-fast: false
+    steps:
+      - uses: actions/checkout@v2
+      - uses: shivammathur/setup-php@v2
+        with:
+          php-version: ${{ matrix.php }}
+          coverage: none
+      - run: composer install --no-interaction
+      - run: composer run verify
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index b202a6e..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-language: php
-
-php:
-- 7.1
-- 7.2
-- 7.3
-- 7.4
-- nightly
-
-before_script:
-- composer selfupdate
-- composer install
-
-script: composer run verify