generate-mac/.gitlab-ci.yml

48 lines
1.1 KiB
YAML
Raw Normal View History

2021-01-21 11:29:27 -08:00
# Select what we should cache between builds
cache:
paths:
- vendor/
2021-01-21 11:37:59 -08:00
2021-01-21 11:29:27 -08:00
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.
2021-01-21 11:31:08 -08:00
test:7.3:
2021-01-21 11:37:59 -08:00
tags:
- default
2021-01-21 11:31:08 -08:00
image: php:7.3
2021-01-21 11:33:50 -08:00
only:
2021-01-21 11:36:11 -08:00
- 0.x@sikofitt/generate-mac
2021-01-21 11:29:27 -08:00
script:
- vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never
2021-01-21 11:31:08 -08:00
test:7.4:
2021-01-21 11:37:59 -08:00
tags:
- default
2021-01-21 11:31:08 -08:00
image: php:7.4
2021-01-21 11:33:50 -08:00
only:
2021-01-21 11:36:11 -08:00
- 0.x@sikofitt/generate-mac
2021-01-21 11:29:27 -08:00
script:
- vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never
2021-01-21 11:31:08 -08:00
test:8.0:
2021-01-21 11:37:59 -08:00
tags:
- default
2021-01-21 11:31:08 -08:00
image: php:8.0
2021-01-21 11:33:50 -08:00
only:
2021-01-21 11:36:11 -08:00
- branches
2021-01-21 11:29:27 -08:00
script:
2021-01-21 11:31:08 -08:00
- vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never