From 9ed27442f9c558dff6593dd8154607f79b901f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kucha=C5=99?= <honza.kuchar@grifart.cz> Date: Tue, 6 Nov 2018 13:23:26 +0100 Subject: [PATCH] added CI --- .gitlab-ci.yml | 19 +++++++++++++++++++ composer.json | 10 ++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5d9d779 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +image: grifart/php7.1-with-gulp-and-all-php-modules + +stages: +- build +- test + +build.composer: + stage: build + script: + - composer install + artifacts: + paths: + - vendor + expire_in: 10 days + +test.verify: + stage: test + script: + - composer run verify diff --git a/composer.json b/composer.json index 73d78fb..c5f1420 100644 --- a/composer.json +++ b/composer.json @@ -5,6 +5,16 @@ "require": { "php": ">=7.1" }, + "scripts": { + "verify": [ + "@syntax-check", + "@phpstan", + "@tester" + ], + "syntax-check": "vendor/bin/parallel-lint src tests", + "phpstan": "vendor/bin/phpstan analyze --ansi --no-progress --no-interaction --level max src", + "tester": "vendor/bin/tester tests" + }, "require-dev": { "nette/tester": "^2.1", "phpstan/phpstan": "^0.10.5", -- GitLab