Skip to content

Commit

Permalink
Fix Travis CI composer version
Browse files Browse the repository at this point in the history
The Combination PHP <7.4 and maglnet/composer-require-checker doesn't work with Composer 2. User Composer version 1 for PHP 7.2 and 7.3.
  • Loading branch information
youwe-petervanderwal committed Oct 30, 2020
1 parent b24e70e commit 1084783
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
sudo: required

language: php
php:
- 7.2
- 7.3
- 7.4

jobs:
include:
# Combination PHP <7.4 and maglnet/composer-require-checker doesn't work with Composer 2
- php: 7.2
env: COMPOSER_VERSION=1.10.16
- php: 7.3
env: COMPOSER_VERSION=1.10.16
- php: 7.4
env: COMPOSER_VERSION=--stable

env:
- ESB_CONSOLE_PORT=8080 ESB_HTTP_SERVER_PORT=34981 ESB_BEANSTALKD_URL=tcp://127.0.0.1:11300 ES_BASE_URI=http://127.0.0.1:9200
Expand All @@ -24,6 +30,8 @@ before_install:
- echo -e '-Ddiscovery.type=single-node\n-XX:+DisableExplicitGC\n-Djdk.io.permissionsUseCanonicalPath=true\n-Dlog4j.skipJansi=true\n-server\n' | sudo tee -a /etc/elasticsearch/jvm.options
- sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch
- sudo systemctl start elasticsearch
- composer --verbose self-update $COMPOSER_VERSION
- composer --version

install:
- sudo apt-get update
Expand Down

0 comments on commit 1084783

Please sign in to comment.