sortablegridfield/.travis.yml

43 lines
1.1 KiB
YAML
Raw Normal View History

language: php
2020-05-29 13:55:24 +02:00
dist: xenial
services:
- mysql
- postgresql
cache:
directories:
- $HOME/.composer/cache/files
matrix:
include:
2018-07-04 19:06:01 +02:00
- php: 5.6
env: DB=MYSQL CORE_RELEASE=4.4.x-dev PHPUNIT_TEST=1
- php: 7.1
env: DB=MYSQL CORE_RELEASE=4.5.x-dev PHPUNIT_TEST=1 PDO=1
- php: 7.2
env: DB=PGSQL CORE_RELEASE=4.6.x-dev PHPUNIT_TEST=1
- php: 7.3
env: DB=MYSQL CORE_RELEASE=4.6.x-dev PHPUNIT_TEST=1
- php: 7.4
env: DB=MYSQL CORE_RELEASE=4.x-dev PHPUNIT_TEST=1
2016-02-06 22:14:21 +01:00
2013-04-09 17:09:06 +02:00
before_script:
# Init PHP
- composer self-update || true
- phpenv rehash
- phpenv config-rm xdebug.ini
# Install composer dependencies
- composer validate
- composer require --no-update silverstripe/recipe-core:$CORE_RELEASE
2017-11-24 21:38:32 +01:00
- composer require --no-update phpunit/phpunit:^5.7
# Fix for running phpunit 5 on php 7.4+
- composer require --no-update sminnee/phpunit-mock-objects:^3
- if [[ $DB == PGSQL ]]; then composer require silverstripe/postgresql:^2 --prefer-dist --no-update; fi
2017-11-24 21:35:26 +01:00
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
2013-04-09 17:09:06 +02:00
2016-02-06 22:14:21 +01:00
script:
2018-07-04 19:06:01 +02:00
- vendor/bin/phpunit