From 8b689a3df9377959c65dfb22a5faf2ff4d0e0cdc Mon Sep 17 00:00:00 2001 From: "R. Eric Wheeler" Date: Mon, 25 Jan 2021 20:44:05 +0000 Subject: [PATCH] add .gitlab-ci.yml --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..a6850bb --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,32 @@ +only: + - master +tags: + - default +# Select what we should cache between builds +cache: + paths: + - vendor/ + +before_script: + - apt-get update -yqq + - apt-get install -yqq git libzip unzip zip zlib1g-dev libxml2-dev ibpcre3-dev + # Install PHP extensions + - docker-php-ext-install zip + # Install & enable Xdebug for code coverage reports + - pecl install xdebug + - docker-php-ext-enable xdebug + # Install and run Composer + - curl -sS https://getcomposer.org/installer | php + - php composer.phar install + +# Run our tests +# If Xdebug was installed you can generate a coverage report and see code coverage metrics. +test:7.4: + + image: php:7.4 + script: + - vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never +test:8.0: + image: php:8.0 + script: + - vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never