From 6ef9053301c84b312520ce81efd1af562030dbda Mon Sep 17 00:00:00 2001 From: "R. Eric Wheeler" Date: Thu, 21 Jan 2021 19:49:17 +0000 Subject: [PATCH] Add new file --- .gitlab-ci.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..13a6d93 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,47 @@ +# Select what we should cache between builds +cache: + paths: + - vendor/ + +before_script: + - apt-get update -yqq + - apt-get install -yqq git unzip + # Install PHP extensions + # 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 + + +# Set any variables we need +variables: + XDEBUG_MODE: coverage + +# Run our tests +# If Xdebug was installed you can generate a coverage report and see code coverage metrics. +test:7.3: + tags: + - default + image: php:7.3 + only: + - 0.x@sikofitt/generate-mac + script: + - vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never +test:7.4: + tags: + - default + image: php:7.4 + only: + - 0.x@sikofitt/generate-mac + script: + - vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never +test:8.0: + tags: + - default + image: php:8.0 + only: + - branches + script: + - vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never