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 Feb 23, 2021
1 parent eb70d21 commit 419f06e
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
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
global:
- 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

cache:
directories:
Expand All @@ -24,14 +31,16 @@ 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
- sudo apt-get install beanstalkd

before_script:
- composer install
- composer global require maglnet/composer-require-checker && $HOME/.composer/vendor/bin/composer-require-checker --config-file=composer-require-checker.json;
- composer global require maglnet/composer-require-checker && $(composer config home)/vendor/bin/composer-require-checker --config-file=composer-require-checker.json;
- vendor/bin/ecs check
- vendor/bin/phpstan analyse --no-progress -l max -c phpstan.neon src/

Expand Down

0 comments on commit 419f06e

Please sign in to comment.