Skip to content

Commit

Permalink
feat: add laravel 5.8 support (#31)
Browse files Browse the repository at this point in the history
* ci: switch to circleci

* feat: add laravel 5.8 support

* ci(config): remove then

* ci(config): fix cc-test-reporter
  • Loading branch information
ellisio authored Aug 14, 2019
1 parent 7d82d88 commit b601af0
Show file tree
Hide file tree
Showing 5 changed files with 164 additions and 64 deletions.
150 changes: 150 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
version: 2.1
jobs:
build:
parameters:
php:
type: string
laravel:
type: string
symfony:
type: string
phpunit:
type: string
coverage:
type: boolean
default: false
docker:
- image: circleci/php:<<parameters.php>>
steps:
- checkout
- run: echo $GITHUB_TOKEN
- run:
name: Install dependencies
command: |
composer require "laravel/framework:<<parameters.laravel>>" --no-update -n
composer require "symfony/lts:<<parameters.symfony>>" --no-update -n
composer require "phpunit/phpunit:<<parameters.phpunit>>" --dev --no-update -n
composer install --no-suggest --prefer-dist -n -o
- when:
condition: <<parameters.coverage>>
steps:
- run:
name: Install Code Coverage
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Run PHPUnit
command: |
./cc-test-reporter before-build
vendor/bin/phpunit --coverage-clover build/logs/clover.xml
./cc-test-reporter after-build --coverage-input-type clover --exit-code $?
- when:
unless: <<parameters.coverage>>
steps:
- run:
name: Run PHPUnit
command: vendor/bin/phpunit
release:
docker:
- image: circleci/node:latest
steps:
- checkout
- run:
name: Create release
command: npx semantic-release
workflows:
version: 2
build:
jobs:
- build:
name: "php7.1-5.5"
php: "7.1"
laravel: 5.5.*
symfony: ^3.0
phpunit: ^6.5
- build:
name: "php7.1-5.6"
php: "7.1"
laravel: 5.6.*
symfony: ^4.0
phpunit: ^7.0
- build:
name: "php7.1-5.7"
php: "7.1"
laravel: 5.7.*
symfony: ^4.1
phpunit: ^7.0
- build:
name: "php7.1-5.8"
php: "7.1"
laravel: 5.8.*
symfony: ^4.2
phpunit: ^7.5
- build:
name: "php7.2-5.5"
php: "7.2"
laravel: 5.5.*
symfony: ^3.0
phpunit: ^6.5
- build:
name: "php7.2-5.6"
php: "7.2"
laravel: 5.6.*
symfony: ^4.0
phpunit: ^7.0
- build:
name: "php7.2-5.7"
php: "7.2"
laravel: 5.7.*
symfony: ^4.1
phpunit: ^7.0
- build:
name: "php7.2-5.8"
php: "7.2"
laravel: 5.8.*
symfony: ^4.2
phpunit: ^7.5
- build:
name: "php7.3-5.5"
php: "7.3"
laravel: 5.5.*
symfony: ^3.0
phpunit: ^6.5
- build:
name: "php7.3-5.6"
php: "7.3"
laravel: 5.6.*
symfony: ^4.0
phpunit: ^7.0
- build:
name: "php7.3-5.7"
php: "7.3"
laravel: 5.7.*
symfony: ^4.1
phpunit: ^7.0
- build:
name: "php7.3-5.8"
php: "7.3"
laravel: 5.8.*
symfony: ^4.2
phpunit: ^7.5
coverage: true
- release:
context: semantic-release
filters:
branches:
only: master
requires:
- php7.1-5.5
- php7.1-5.6
- php7.1-5.7
- php7.1-5.8
- php7.2-5.5
- php7.2-5.6
- php7.2-5.7
- php7.2-5.8
- php7.3-5.5
- php7.3-5.6
- php7.3-5.7
- php7.3-5.8
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
vendor
composer.lock
.idea
.phpunit.result.cache

# Code Climate
build/
Expand Down
8 changes: 8 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"branch": "master",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}
59 changes: 0 additions & 59 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
],
"require": {
"php": "^7.1.3",
"illuminate/contracts": "5.5.*|5.6.*|5.7.*",
"illuminate/container": "5.5.*|5.6.*|5.7.*",
"illuminate/support": "5.5.*|5.6.*|5.7.*",
"illuminate/validation": "5.5.*|5.6.*|5.7.*",
"twilio/sdk": "~5.21.4"
"illuminate/contracts": "5.5.*|5.6.*|5.7.*|5.8.*",
"illuminate/container": "5.5.*|5.6.*|5.7.*|5.8.*",
"illuminate/support": "5.5.*|5.6.*|5.7.*|5.8.*",
"illuminate/validation": "5.5.*|5.6.*|5.7.*|5.8.*",
"twilio/sdk": "~5.34.3"
},
"require-dev": {
"graham-campbell/testbench": "^4.0|^5.0",
Expand Down

0 comments on commit b601af0

Please sign in to comment.