An error occurred while loading the file. Please try again.
-
Guillaume Perréal authored8faf51dd
This GitLab CI configuration is invalid:
Project `pole-is/tools/ci-config` not found or access denied! Make sure any includes in the pipeline configuration are correctly defined.
Learn more
include:
- project: pole-is/tools/ci-config
ref: "4.0.2"
file: /php/packagist.yml
test:
tags: [docker]
parallel:
matrix:
- COMPOSER_MAJOR:
- "1"
- "2"
COMPOSER_OPTS:
- ""
- "--prefer-lowest --prefer-stable"
PHP_VERSION:
- "7.1"
- "7.3"
- "7.4"
- "8.0-rc"
image: php:${PHP_VERSION}-cli
rules:
- if: $PHP_VERSION == "8.0-rc"
allow_failure: true
- when: always
before_script:
- |
echo -e "section_start:`date +%s`:setup[collapsed=true]\r\e[0KInstall dependencies"
apt-get update -yqq
apt-get install -yqq unzip git
if [[ $PHP_VERSION != "8.0-rc" ]]; then
pecl install pcov
docker-php-ext-enable pcov
fi
curl -sSL "https://getcomposer.org/composer-${COMPOSER_MAJOR}.phar" -o /tmp/composer
echo -en "section_end:`date +%s`:setup\r\e[0K"
- php -v
- php /tmp/composer -V
script:
- |
echo -e "section_start:`date +%s`:composer[collapsed=true]\r\e[0Kcomposer update ${COMPOSER_OPTS}"
php /tmp/composer update -n --no-progress ${COMPOSER_OPTS}
echo -en "section_end:`date +%s`:composer\r\e[0K"
- php /tmp/composer test