Commit 5d64a2fc authored by Thomas Citharel's avatar Thomas Citharel 🌲

test on 7.0 & 7.1 & 7.2

parent 40cf00ca
Pipeline #25787 passed with stage
in 7 minutes and 2 seconds
# This file is a template, and might need editing before it works on your project.
# Select image from https://hub.docker.com/_/php/
image: php:7.1
test_php7.0:
image: php:7.0
script:
- ant prepare-pgsql
- ./vendor/bin/simple-phpunit -v
test_php7.1:
image: php:7.1
script:
- ant prepare-pgsql
- ./vendor/bin/simple-phpunit -v
test_php7.2:
image: php7.2-rc
allow_failure: true
script:
- ant prepare-pgsql
- ./vendor/bin/simple-phpunit -v
# Select what we should cache between builds
cache:
......@@ -13,6 +30,13 @@ before_script:
- apt-get install -y git zlib1g-dev ant libpq-dev libzip-dev libicu-dev
# Install PHP extensions
- docker-php-ext-install zip pgsql pdo_pgsql intl
- cp app/config/tests/parameters_test.pgsql.yml app/config/parameters_test.yml
- curl -sS https://getcomposer.org/installer | php
- SYMFONY_ENV=test php composer.phar install -o --no-interaction --no-progress --prefer-dist
# - npm install TODO: Activate me later
- git clone https://framagit.org/framasoft/framasite-grav grav
- mkdir blog/users -p
- mkdir wiki/users -p
# Bring in any services we need http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
# See http://docs.gitlab.com/ce/ci/services/README.html for examples.
......@@ -26,17 +50,3 @@ variables:
POSTGRES_PASSWORD: test
TIMEZONE: "Europe/Paris"
# Run our tests
# If Xdebug was installed you can generate a coverage report and see code coverage metrics.
test:
script:
# Install and run Composer
- cp app/config/tests/parameters_test.pgsql.yml app/config/parameters_test.yml
- curl -sS https://getcomposer.org/installer | php
- SYMFONY_ENV=test php composer.phar install -o --no-interaction --no-progress --prefer-dist
# - npm install TODO: Activate me later
- git clone https://framagit.org/framasoft/framasite-grav grav
- mkdir blog/users -p
- mkdir wiki/users -p
- ant prepare-pgsql
- ./vendor/bin/simple-phpunit -v
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment