From fc8a4af63984be35317749e3e5e47dc6a15adb39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@inrae.fr> Date: Sun, 25 Oct 2020 13:27:29 +0100 Subject: [PATCH] Effectue plus de tests. --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 623712d..3b07c13 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,28 @@ test: tags: [docker] parallel: matrix: - - COMPOSER_MAJOR: "1" - - COMPOSER_MAJOR: "2" - image: composer:${COMPOSER_MAJOR} - script: composer install --ignore-platform-reqs + - 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 + - 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: + - php /tmp/composer update --ignore-platform-reqs -- GitLab