Skip to content

Commit

Permalink
Merge pull request #7 from o0h/update-travis-config
Browse files Browse the repository at this point in the history
Use PHP7.4 as default alter to 7.3
  • Loading branch information
o0h authored Feb 24, 2020
2 parents 59d70ad + 5250476 commit 0e75e0c
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 0e75e0c

Please sign in to comment.