Skip to content

Commit

Permalink
Improve Travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMasterov committed Feb 4, 2017
1 parent 4f649b6 commit 0bec6e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
language: php

php:
- 7.0
- 7.1

sudo: false

cache:
Expand All @@ -13,17 +17,15 @@ git:
matrix:
fast_finish: true
include:
- php: 5.6
- php: 7
env:
- COMPOSER_FLAGS="--prefer-stable"
- php: 7.1

before_script:
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source --ignore-platform-reqs
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source

script:
- vendor/bin/phpunit --report-useless-tests
- composer test

after_script:
- bash -c '[[ -f "build/logs/clover.xml" ]] && wget https://scrutinizer-ci.com/ocular.phar'
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"stackexchange",
"stackoverflow"
],
"scripts": {
"test": "phpunit"
},
"require": {
"league/oauth2-client": "^2.2"
},
Expand Down

0 comments on commit 0bec6e9

Please sign in to comment.