Skip to content

Commit

Permalink
Update Travis and honeybadger-php version (#14)
Browse files Browse the repository at this point in the history
* Updated the Travis CI config
* Updated [honeybadger-io/honeybadger-php](https://github.com/honeybadger-io/honeybadger-php)
  • Loading branch information
sixlive committed Sep 14, 2018
1 parent 968edd4 commit 33c60f9
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 15 deletions.
41 changes: 28 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,38 @@
language: php
cache:
directories:
- $HOME/.composer/cache

php:
- 7.1
- 7.2
language: php

env:
matrix:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""
global:
- COVERAGE=0

matrix:
include:
- php: 7.1
env: LARAVEL='5.5.*' TESTBENCH='3.5.*'
- php: 7.1
env: LARAVEL='5.6.*' TESTBENCH='3.6.*'
- php: 7.2
env: LARAVEL='5.5.* 'TESTBENCH='3.5.*'
- php: 7.2
env: COVERAGE=1 LARAVEL='5.6.*' 'TESTBENCH='3.6.*'
fast_finish: true

before_script:
- composer config discard-changes true
- if [[ $COVERAGE = '1' ]]; then ./bin/codeclimate setup; fi

before_install:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
- 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 require "laravel/framework:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" --no-interaction --no-update

install:
- travis_retry composer install --prefer-dist --no-interaction --no-suggest

script:
- vendor/bin/phpunit

after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
after_success:
- if [[ $COVERAGE = 1 ]]; then ./bin/codeclimate report $TRAVIS_TEST_RESULT; fi
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
* Updated the Travis CI config ([#14](https://github.com/honeybadger-io/honeybadger-laravel/pull/14))
* Updated [honeybadger-io/honeybadger-php](https://github.com/honeybadger-io/honeybadger-php) ([#14](https://github.com/honeybadger-io/honeybadger-laravel/pull/14))

## [1.2.0] - 2018-08-17
### Changed
Expand Down
11 changes: 11 additions & 0 deletions bin/codeclimate
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

if [[ $1 = 'setup' ]]; then
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
fi

if [[ $1 = 'report' ]]; then
./cc-test-reporter after-build --exit-code $2
fi
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
"require": {
"php": "^7.1|^7.2",
"honeybadger-io/honeybadger-php": "^1.1",
"honeybadger-io/honeybadger-php": "^1.2",
"illuminate/console": "^5.5|^5.6",
"illuminate/support": "^5.5|^5.6"
},
Expand All @@ -31,7 +31,7 @@
"larapack/dd": "^1.0",
"mockery/mockery": "^1.1",
"orchestra/testbench": "^3.5|^3.6",
"phpunit/phpunit": "^7.0"
"phpunit/phpunit": "^6.0|^7.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 33c60f9

Please sign in to comment.