Skip to content

Commit

Permalink
Fix Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemand committed Apr 22, 2018
1 parent 09b33b3 commit e3afd0b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- nightly
- 7.2

# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
Expand All @@ -16,13 +14,21 @@ cache:
- $HOME/.composer/cache

env:
global:
- CC_TEST_REPORTER_ID=9d275dce9d3faf1c92b7b4bc27d6395b282b8a516fffffea6896933c104ea56b
matrix:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""

before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist

script:
- vendor/bin/phpspec run

after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

0 comments on commit e3afd0b

Please sign in to comment.