# 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