Skip to content

Commit

Permalink
Add PHP 7.1 to Travis build
Browse files Browse the repository at this point in the history
This change is for forward compatibility with PHP 7.1.

Add PHP 7.1 (currently PHP 7.1-RC6 on Travis) to the Travis build. Allow
failures with it as failures are expected.

To get it to work, for PHP 7.1 composer ignores platform requirements.

Refs:

- magento#5701
  • Loading branch information
ktomk committed Dec 6, 2016
1 parent 010156f commit 53e908e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -11,6 +11,7 @@ language: php
php:
- 5.6
- 7.0
- 7.1 # Experimental, forward compatible (allowed to fail, see matrix: allow_failures: below)
env:
global:
- COMPOSER_BIN_DIR=~/bin
Expand All @@ -25,11 +26,13 @@ cache:
apt: true
directories: $HOME/.composer/cache
matrix:
allow_failures:
- php: 7.1
exclude:
- php: 7.0
env: TEST_SUITE=static
before_install: ./dev/travis/before_install.sh
install: composer install --no-interaction --prefer-dist
install: test ${TRAVIS_PHP_VERSION:0:3} = "7.1" && composer install --no-interaction --prefer-dist --ignore-platform-reqs || composer install --no-interaction --prefer-dist
before_script: ./dev/travis/before_script.sh
script:
- cd dev/tests/$TEST_SUITE
Expand Down

0 comments on commit 53e908e

Please sign in to comment.