Skip to content

Commit

Permalink
Test with laravel 8
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic committed Jan 9, 2021
1 parent f40621e commit 108fd4d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 33 deletions.
43 changes: 11 additions & 32 deletions .travis.yml
@@ -1,56 +1,35 @@
os: linux
dist: bionic
language: php

dist: trusty

php:
- 7.1
- 7.2
- 7.3
- hhvm
- 7.4
- nightly

env:
# Laravel 5.8.*
- ILLUMINATE_VERSION=5.8.*

# Laravel 7.x
- ILLUMINATE_VERSION=7.x
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
- composer self-update
- composer require "illuminate/support:${ILLUMINATE_VERSION}" --no-update
- if [[ ! -z "$PHPUNIT_VERSION" ]]; then composer require "phpunit/phpunit:${PHPUNIT_VERSION}" --no-update; fi
- composer install --prefer-source --no-interaction

script:
- mkdir -p build/logs
- php vendor/bin/phpunit
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && $TRAVIS_PHP_VERSION != "hhvm" && $TRAVIS_PHP_VERSION != "nightly" && $TRAVIS_PHP_VERSION != "7.3" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi

- if [[ "$TRAVIS_PULL_REQUEST" == "false" && $TRAVIS_PHP_VERSION != "nightly" && $TRAVIS_PHP_VERSION != "8.0" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
matrix:
include:
# Laravel 6.x
- php: 7.2
env: ILLUMINATE_VERSION=6.x
- php: 7.3
env: ILLUMINATE_VERSION=6.x
- php: nightly
env: ILLUMINATE_VERSION=6.x
# Laravel 7.x
- php: 7.2
env: ILLUMINATE_VERSION=7.x
- php: 7.3
env: ILLUMINATE_VERSION=7.x
# Laravel 8.x
- php: 7.4
env: ILLUMINATE_VERSION=7.x
env: ILLUMINATE_VERSION=8.x
- php: 8.0
env: ILLUMINATE_VERSION=8.x
- php: nightly
env: ILLUMINATE_VERSION=7.x

env: ILLUMINATE_VERSION=8.x
allow_failures:
- php: hhvm
- php: nightly
fast_finish: true

notifications:
webhooks:
urls:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -17,7 +17,7 @@
"denpa/php-bitcoinrpc": ">=2.1.2 <2.2"
},
"require-dev": {
"orchestra/testbench": "~3.0 | 4.x | 5.x"
"orchestra/testbench": "5.x | 6.x"
},
"autoload": {
"psr-4" : {
Expand Down

0 comments on commit 108fd4d

Please sign in to comment.