From 5729a0c9777cc7b35c7fd88c6d423a00be3bf8ba Mon Sep 17 00:00:00 2001 From: "clemens.schwaighofer@egplusww.com" Date: Wed, 11 Jan 2023 08:49:23 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8473491 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,37 @@ +# This file is a template, and might need editing before it works on your project. +# You can copy and paste this template into a new `.gitlab-ci.yml` file. +# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword. +# +# To contribute improvements to CI/CD templates, please follow the Development guide at: +# https://docs.gitlab.com/ee/development/cicd/templates.html +# This specific template is located at: +# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/PHP.gitlab-ci.yml + +# Select image from https://hub.docker.com/_/php/ +image: php:8.1 + +# Select what we should cache between builds +cache: + paths: + - vendor/ + +before_script: + - apt-get update -yqq + - apt-get install -yqq git + # Install PHP extensions + - docker-php-ext-install mbstring curl intl gd xml zip bz2 opcache + # Install and run Composer + - curl -sS https://getcomposer.org/installer | php + - php composer.phar install + + +# Run our tests +test: + script: + - vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never test/phpUnitTests + +# test:php8.2: +# image: php:8.2 +# script: +# - vendor/bin/phpunit --configuration phpunit.xml --coverage-text +