Skip to content

Commit

Permalink
Use PHP7.4 as default alter to 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
o0h committed Feb 24, 2020
1 parent 59d70ad commit 5250476
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,16 @@ language: php
php:
- 7.2
- 7.3
- 7.4snapshot
- 7.4

env:
matrix:
- PREFER_LOWEST="--prefer-lowest"

matrix:
include:
- php: 7.3
- php: 7.4
env: PREFER_LOWEST=""
- php: 7.4snapshot
env: PREFER_LOWEST=""

allow_failures:
- php: '7.4snapshot'


services:
Expand Down Expand Up @@ -45,7 +40,7 @@ before_script:

script:
- |
if [[ $TRAVIS_PHP_VERSION == '7.3' ]]; then
if [[ $TRAVIS_PHP_VERSION == '7.4' ]]; then
vendor/bin/phpunit --verbose --coverage-clover=clover.xml
composer stan-setup
composer stan
Expand All @@ -56,7 +51,7 @@ script:
after_success:
- |
# obrained from https://github.com/codecov/codecov-bash/issues/133#issuecomment-447337868
if [[ $TRAVIS_PHP_VERSION == '7.3' ]]; then
if [[ $TRAVIS_PHP_VERSION == '7.4' ]]; then
curl -s https://codecov.io/bash > codecov
sed -i -e 's/TRAVIS_.*_VERSION/^TRAVIS_.*_VERSION=/' codecov
bash codecov
Expand Down

0 comments on commit 5250476

Please sign in to comment.