silverstripe-behat-extension/.travis.yml

41 lines
1.2 KiB
YAML
Raw Normal View History

2015-04-07 13:15:22 +02:00
language: php
2020-06-24 02:52:21 +02:00
dist: xenial
2020-06-24 02:52:21 +02:00
services:
- mysql
- postgresql
cache:
directories:
- $HOME/.composer/cache/files
matrix:
include:
2017-03-20 22:55:05 +01:00
- php: 5.6
2020-06-24 02:52:21 +02:00
env: DB=MYSQL RECIPE_VERSION=4.4.x-dev PHPUNIT_TEST=1 PHPCS_TEST=1
- php: 7.1
env: DB=MYSQL RECIPE_VERSION=4.5.x-dev PHPUNIT_TEST=1 PDO=1
- php: 7.2
env: DB=MYSQL RECIPE_VERSION=4.6.x-dev PHPUNIT_TEST=1
- php: 7.3
env: DB=MYSQL RECIPE_VERSION=4.6.x-dev PHPUNIT_TEST=1
- php: 7.4
env: DB=MYSQL RECIPE_VERSION=4.x-dev PHPUNIT_TEST=1
before_script:
- export PATH=~/.composer/vendor/bin:$PATH
2020-06-24 02:52:21 +02:00
- echo 'memory_limit = 2G' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
2017-03-24 03:01:56 +01:00
- composer validate
- composer install --dev --prefer-dist
2020-06-24 02:52:21 +02:00
- composer require --prefer-dist --no-update silverstripe/recipe-cms:$RECIPE_VERSION
# Fix for running phpunit 5 on php 7.4+
- composer require --no-update sminnee/phpunit-mock-objects:^3.4.7
- composer update
- if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi
- phpenv rehash
script:
2014-08-02 08:30:27 +02:00
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit tests/php; fi
- if [[ $PHPCS_TEST ]]; then composer run-script lint; fi