diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..5d9d7792660da4e3a2253b5f6bbed94bbb4bd9bb --- /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 73d78fbb7dd8a35d9c08a5d3b8e5134c7e2bfe88..c5f1420e458bed22e7998ecc1c866494df50aa5e 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",