From 6b8c18c323ba1cfe3b1c4a2783ad96b044cc81e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kucha=C5=99?= <honza.kuchar@grifart.cz> Date: Mon, 11 Mar 2019 11:19:04 +0100 Subject: [PATCH] add Travis --- .travis.yml | 12 ++++++++++++ composer.json | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b632e8a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: php + +# keep up-to-date with composer.json supported platforms: +php: + - '7.1' + - '7.2' + - '7.3' + +before_script: + - composer install +script: + - composer run verify diff --git a/composer.json b/composer.json index 7605491..37cf946 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Adds support for suppressed exceptions as known in Java. https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html#suppressed-exceptions", "type": "library", "require": { - "php": ">=7.1" + "php": "~7.1.0 || ~7.2.0 || ~7.3.0" }, "scripts": { "verify": [ -- GitLab