Skip to content

Commit 49986bf

Browse files
committed
GH-4: Run tests on --prefer-lowest too.
1 parent 894989f commit 49986bf

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.travis.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,26 @@ services:
1313
env:
1414
global:
1515
- DOCKER_COMPOSE_VERSION=1.22.0
16+
matrix:
17+
- COMPOSER_BOUNDARY=lowest
18+
- COMPOSER_BOUNDARY=highest
19+
1620

1721
before_install:
18-
- docker-compose up -d
22+
- 'docker-compose up -d'
1923

2024
install:
21-
- docker-compose exec web composer install
22-
- docker-compose exec web chown -R www-data:www-data build
25+
- 'docker-compose exec web composer install --ansi --no-suggest --no-progress'
26+
- '[[ ${COMPOSER_BOUNDARY} == "lowest" ]] && docker-compose exec web composer update --prefer-lowest --ansi --no-suggest --no-progress'
27+
- 'docker-compose exec web chown -R www-data:www-data build'
2328

2429
before_script:
25-
- docker-compose exec web ./vendor/bin/run drupal:site-install
26-
- docker-compose exec web chmod -R 775 build/sites/default
30+
- 'docker-compose exec web ./vendor/bin/run drupal:site-install'
31+
- 'docker-compose exec web chmod -R 775 build/sites/default'
2732

2833
script:
29-
- docker-compose exec web ./vendor/bin/grump run
30-
- docker-compose exec web ./vendor/bin/behat --strict
34+
- 'docker-compose exec web ./vendor/bin/grumphp run'
35+
- 'docker-compose exec web ./vendor/bin/behat --strict'
3136

3237
notifications:
3338
email: false

0 commit comments

Comments
 (0)