Skip to content

Commit

Permalink
Merge pull request #7 from cybercog/feature/laravel-57-support
Browse files Browse the repository at this point in the history
Add Laravel 5.7 support
  • Loading branch information
antonkomarev authored Sep 9, 2018
2 parents 3b168fb + db979f0 commit 1bc9ec2
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to `laravel-youtrack-sdk` will be documented in this file.

## 4.2.0 - 2018-09-09

### Added

- Laravel 5.7 support

## 4.1.0 - 2018-02-08

### Added
Expand Down
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"require": {
"php": "^7.1",
"cybercog/youtrack-php-sdk": "^4.0",
"illuminate/support": "~5.4|~5.5|~5.6"
"illuminate/support": "~5.4|~5.5|~5.6|~5.7"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.10",
Expand All @@ -59,12 +59,14 @@
"test-install": [
"composer install --prefer-dist --no-interaction --working-dir tests/framework/5.4",
"composer install --prefer-dist --no-interaction --working-dir tests/framework/5.5",
"composer install --prefer-dist --no-interaction --working-dir tests/framework/5.6"
"composer install --prefer-dist --no-interaction --working-dir tests/framework/5.6",
"composer install --prefer-dist --no-interaction --working-dir tests/framework/5.7"
],
"test": [
"./vendor/bin/phpunit --configuration tests/framework/5.4",
"./vendor/bin/phpunit --configuration tests/framework/5.5",
"./vendor/bin/phpunit --configuration tests/framework/5.6"
"./vendor/bin/phpunit --configuration tests/framework/5.6",
"./vendor/bin/phpunit --configuration tests/framework/5.7"
]
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion tests/framework/5.4/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
>
<testsuites>
<testsuite name="Package">
<directory suffix="Test.php">../../Unit/</directory>
Expand Down
2 changes: 1 addition & 1 deletion tests/framework/5.5/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
>
<testsuites>
<testsuite name="Package">
<directory suffix="Test.php">../../Unit/</directory>
Expand Down
2 changes: 1 addition & 1 deletion tests/framework/5.6/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
>
<testsuites>
<testsuite name="Package">
<directory suffix="Test.php">../../Unit/</directory>
Expand Down
8 changes: 8 additions & 0 deletions tests/framework/5.7/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"require": {
"illuminate/support": "~5.7.0"
},
"require-dev": {
"orchestra/testbench": "3.7.*"
}
}
31 changes: 31 additions & 0 deletions tests/framework/5.7/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
>
<testsuites>
<testsuite name="Package">
<directory suffix="Test.php">../../Unit/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>
<php>
<env name="YOUTRACK_BASE_URI" value="https://youtrack.example.com"/>
<env name="YOUTRACK_AUTH" value="token"/>
<env name="YOUTRACK_TOKEN" value=""/>
<env name="YOUTRACK_USERNAME" value=""/>
<env name="YOUTRACK_PASSWORD" value=""/>
<env name="YOUTRACK_PROJECT" value="TEST"/>
</php>
</phpunit>

0 comments on commit 1bc9ec2

Please sign in to comment.