mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
MNT Fix travis matrix
This commit is contained in:
parent
017804dbd4
commit
b5bd1e69b5
12
.travis.yml
12
.travis.yml
@ -17,17 +17,17 @@ env:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
env: DB=MYSQL INSTALLER_VERSION=4.4.x-dev PHPCS_TEST=1 PHPUNIT_TEST=1
|
env: DB=MYSQL INSTALLER_VERSION=~4.4.0@dev PHPCS_TEST=1 PHPUNIT_TEST=1
|
||||||
- php: 7.0
|
- php: 7.0
|
||||||
env: DB=PGSQL INSTALLER_VERSION=4.4.x-dev PHPUNIT_TEST=1
|
env: DB=PGSQL INSTALLER_VERSION=~4.4.0@dev PHPUNIT_TEST=1
|
||||||
- php: 7.1
|
- php: 7.1
|
||||||
env: DB=MYSQL INSTALLER_VERSION=4.4.x-dev BEHAT_TEST=1
|
env: DB=MYSQL INSTALLER_VERSION=~4.4.0@dev BEHAT_TEST=1
|
||||||
- php: 7.2
|
- php: 7.2
|
||||||
env: DB=MYSQL INSTALLER_VERSION=4.4.x-dev PHPUNIT_TEST=1
|
env: DB=MYSQL INSTALLER_VERSION=~4.4.0@dev PHPUNIT_TEST=1
|
||||||
- php: 7.2
|
- php: 7.2
|
||||||
env: DB=MYSQL INSTALLER_VERSION=4.x-dev BEHAT_TEST=1
|
env: DB=MYSQL INSTALLER_VERSION=4.x-dev BEHAT_TEST=1
|
||||||
- php: 7.3
|
- php: 7.3
|
||||||
env: DB=MYSQL INSTALLER_VERSION=4.4.x-dev PHPUNIT_TEST=1
|
env: DB=MYSQL INSTALLER_VERSION=~4.4.0@dev PHPUNIT_TEST=1
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
# Extra $PATH
|
# Extra $PATH
|
||||||
@ -37,6 +37,8 @@ before_script:
|
|||||||
- phpenv rehash
|
- phpenv rehash
|
||||||
- phpenv config-rm xdebug.ini
|
- phpenv config-rm xdebug.ini
|
||||||
- echo 'memory_limit=3G' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
- echo 'memory_limit=3G' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
||||||
|
# install $COMPOSER_VERSION if defined, otherwise use Composer v1 with PHP <= 7.3, Composer v2 for >= 7.3
|
||||||
|
- if [ $COMPOSER_VERSION ] ; then composer self-update --$COMPOSER_VERSION ; elif [ $(php -r 'echo (int) version_compare(phpversion(), "7.3.0", "<=");') = "1" ] ; then composer self-update --1; else composer self-update --2; fi
|
||||||
|
|
||||||
# Install composer
|
# Install composer
|
||||||
- composer validate
|
- composer validate
|
||||||
|
@ -2,7 +2,7 @@ default:
|
|||||||
suites:
|
suites:
|
||||||
subsites:
|
subsites:
|
||||||
paths:
|
paths:
|
||||||
- %paths.modules.subsites%/tests/behat/features
|
- '%paths.modules.subsites%/tests/behat/features'
|
||||||
contexts:
|
contexts:
|
||||||
- SilverStripe\Framework\Tests\Behaviour\FeatureContext
|
- SilverStripe\Framework\Tests\Behaviour\FeatureContext
|
||||||
- SilverStripe\Framework\Tests\Behaviour\CmsFormsContext
|
- SilverStripe\Framework\Tests\Behaviour\CmsFormsContext
|
||||||
@ -13,7 +13,7 @@ default:
|
|||||||
- SilverStripe\CMS\Tests\Behaviour\ThemeContext
|
- SilverStripe\CMS\Tests\Behaviour\ThemeContext
|
||||||
- SilverStripe\CMS\Tests\Behaviour\FixtureContext:
|
- SilverStripe\CMS\Tests\Behaviour\FixtureContext:
|
||||||
# Note: double indent for args is intentional
|
# Note: double indent for args is intentional
|
||||||
- %paths.modules.subsites%/tests/behat/features/files/
|
- '%paths.modules.subsites%/tests/behat/features/files/'
|
||||||
|
|
||||||
extensions:
|
extensions:
|
||||||
SilverStripe\BehatExtension\MinkExtension:
|
SilverStripe\BehatExtension\MinkExtension:
|
||||||
@ -25,5 +25,5 @@ default:
|
|||||||
browser_name: chrome
|
browser_name: chrome
|
||||||
|
|
||||||
SilverStripe\BehatExtension\Extension:
|
SilverStripe\BehatExtension\Extension:
|
||||||
screenshot_path: %paths.base%/artifacts/screenshots
|
screenshot_path: '%paths.base%/artifacts/screenshots'
|
||||||
bootstrap_file: "vendor/silverstripe/cms/tests/behat/serve-bootstrap.php"
|
bootstrap_file: "vendor/silverstripe/cms/tests/behat/serve-bootstrap.php"
|
||||||
|
Loading…
Reference in New Issue
Block a user