Commit 18f432a9 authored by Thomas Citharel's avatar Thomas Citharel 🌲

Merge branch 'test-multiple-php-versions' into 'framasites'

test on 7.0 & 7.1 & 7.2

See merge request framasoft/framasite!10
parents 40cf00ca e14ad8aa
Pipeline #25796 passed with stage
in 11 minutes and 46 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
# 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