Skip to content

Commit

Permalink
Merge pull request #23 from zaporylie/fix-build
Browse files Browse the repository at this point in the history
Fix travis build
  • Loading branch information
zaporylie authored Oct 6, 2020
2 parents 0d6ebd8 + a409150 commit e45beee
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,36 @@ dist: trusty
sudo: false

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3

env:
global:
- COMPOSER_MEMORY_LIMIT=-1
matrix:
- RELEASE=stable COMPOSER_CHANNEL=stable
- RELEASE=dev COMPOSER_CHANNEL=stable
- RELEASE=stable COMPOSER_CHANNEL=snapshot
- RELEASE=^8 COMPOSER_CHANNEL=stable
- RELEASE=^9 COMPOSER_CHANNEL=stable
- RELEASE=^8 COMPOSER_CHANNEL=snapshot
- RELEASE=^9 COMPOSER_CHANNEL=snapshot

matrix:
allow_failures:
# 5.6 is no longer supported by drupal-composer/drupal-project
- php: 5.6
env: RELEASE=stable COMPOSER_CHANNEL=stable
exclude:
- php: 5.6
env: RELEASE=dev COMPOSER_CHANNEL=stable
- php: 5.6
env: RELEASE=stable COMPOSER_CHANNEL=snapshot
- php: 7.0
env: RELEASE=^9 COMPOSER_CHANNEL=stable
- php: 7.1
env: RELEASE=^9 COMPOSER_CHANNEL=stable
- php: 7.2
env: RELEASE=^9 COMPOSER_CHANNEL=stable
- php: 7.0
env: RELEASE=^9 COMPOSER_CHANNEL=snapshot
- php: 7.1
env: RELEASE=^9 COMPOSER_CHANNEL=snapshot
- php: 7.2
env: RELEASE=^9 COMPOSER_CHANNEL=snapshot

before_install:
- if [[ $TRAVIS_PHP_VERSION = 5.6 ]]; then export COMPOSER_MEMORY_LIMIT=-1; fi;
- composer --verbose self-update --$COMPOSER_CHANNEL
- composer --version

Expand All @@ -37,14 +42,8 @@ install:
script:
# Run automated tests.
- if [[ ${TRAVIS_PHP_VERSION:0:3} != "5.6" ]]; then composer install && ./vendor/bin/phpunit; fi
- cd .. && composer create-project drupal-composer/drupal-project:8.x-dev drupal-project --stability dev --no-interaction
- cd .. && composer create-project drupal/recommended-project:$RELEASE drupal-project --no-interaction
- ls -lah . && cd drupal-project
# zaporylie/composer-drupal-optimizations has been added to drupal-composer/drupal-project and now must be removed
# in order to measure the performance change.
- composer remove zaporylie/composer-drupal-optimizations
- if [[ $RELEASE = dev ]]; then composer --verbose require --no-update --dev webflo/drupal-core-require-dev:8.6.x-dev; fi;
- if [[ $RELEASE = dev ]]; then composer --verbose require --no-update drupal/core:8.6.x-dev; fi;
- if [[ $RELEASE = dev ]]; then composer --verbose update; fi;
# Check the performance.
- composer update nothing --profile
- composer config repositories.local path "../composer-drupal-optimizations" && composer require zaporylie/composer-drupal-optimizations:@dev
Expand Down

0 comments on commit e45beee

Please sign in to comment.