Updating travis install steps

This commit is contained in:
Daniel Hensby 2017-10-12 13:28:32 +01:00
parent c0b10e450e
commit 49744a0a94
No known key found for this signature in database
GPG Key ID: 5DE415D786BBB2FD

View File

@ -22,10 +22,10 @@ before_script:
- echo 'memory_limit = 2G' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# Install composer dependencies
- composer install --prefer-dist
- composer require --prefer-dist --no-update silverstripe/installer:4.0.x-dev silverstripe/widgets:2.x-dev
- if [[ $DB == PGSQL ]]; then composer require --prefer-dist --no-update silverstripe/postgresql:2.0.x-dev; fi
- composer update
- composer validate
- composer require --no-update silverstripe/installer:4.0.x-dev silverstripe/widgets:2.x-dev
- if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:2.0.x-dev; fi
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
script:
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit tests/; fi