From 7faebcad1bb237ba243ec6cda2f9b3e8bca92ad2 Mon Sep 17 00:00:00 2001 From: Felix Heller Date: Mon, 6 Jan 2020 18:53:10 +0100 Subject: [PATCH] [TASK] Install Composer for php-codesniffer --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e6250db..ef3a0d2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,6 +46,10 @@ php-codesniffer: only: changes: - packages/**/*.php + before_script: + - apt -y update > /dev/null + - apt -y install zip > /dev/null + - curl -sS https://getcomposer.org/installer | php && mv ./composer.phar /usr/local/bin/composer script: - rm ./composer.json && rm ./composer.lock - composer require --dev squizlabs/php_codesniffer