Browse Source

Fixed testing errors

tags/v7.0.1
Roumen Damianoff 10 months ago
parent
commit
a3513a818d
No account linked to committer's email address

+ 2
- 1
.gitignore View File

@@ -2,6 +2,7 @@
.DS_Store
Thumbs.db
*.sh
.idea

# composer
composer.phar
@@ -19,4 +20,4 @@ composer.lock
# test runtime files
/tests/tmp
/tests/sitema*.xml
/tests/sitema*.xml.gz
/tests/sitema*.xml.gz

+ 3
- 35
.gitlab-ci.yml View File

@@ -1,25 +1,3 @@
image: php:7.1

before_script:

# update os
- apt-get update -yqq

# install missing packages
- apt-get install wget git zip unzip -yqq

# install composer.phar
- curl -sS https://getcomposer.org/installer | php

# install xdebug
- pecl install xdebug

# enable xdebug
- docker-php-ext-enable xdebug

# run composer install
- php composer.phar install

image: php:7.2

before_script:
@@ -64,23 +42,13 @@ before_script:
# run composer install
- php composer.phar install

# test php 7.1
test:php7.1:

image: php:7.1

script:
- vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never

allow_failure: false

# test php 7.2
test:php7.2:

image: php:7.2

script:
- vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never
- vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never

allow_failure: false

@@ -90,6 +58,6 @@ test:php7.3:
image: php:7.3

script:
- vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --colors=never
- vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never

allow_failure: false
allow_failure: false

+ 13
- 0
CHANGELOG-6.0.md View File

@@ -0,0 +1,13 @@
# Change log


## v6.0.1 (2019-09-03)

### Added

- Added support to Laravel 6
- Added new branch for development ``6.0.x-dev``

### Fixed

- Minor bug fixes and optimizations

+ 1
- 1
CONTRIBUTING.md View File

@@ -16,4 +16,4 @@ There is no special template for creating new issues, but please when create new

## Security Reports

If you discover a security vulnerability within this package, please send an e-mail to Roumen Damianoff via [[email protected]laravelium.com](mailto:[email protected].com). All security vulnerabilities will be promptly addressed.
If you discover a security vulnerability within this package, please send an e-mail to Roumen Damianoff via [[email protected]damianoff.com](mailto:[email protected].com). All security vulnerabilities will be promptly addressed.

+ 10
- 1
README.md View File

@@ -8,7 +8,7 @@
## Installation
Run the following command and provide the latest stable version (e.g v3.1.\*) :
Run the following command and provide the latest stable version (e.g v6.0.\*) :
```bash
composer require laravelium/sitemap
@@ -16,6 +16,15 @@ composer require laravelium/sitemap
*or add the following to your `composer.json` file :*
#### For Laravel 6.0
```json
"laravelium/sitemap": "6.0.*"
```
(development branch)
```json
"laravelium/sitemap": "6.0.x-dev"
```
#### For Laravel 5.8
```json
"laravelium/sitemap": "3.1.*"

+ 6
- 4
composer.json View File

@@ -18,12 +18,14 @@
"wiki": "https://gitlab.com/Laravelium/Sitemap/wikis/home"
},
"require": {
"php": ">=7.1.3",
"illuminate/support": "~5.8",
"illuminate/filesystem": "~5.8"
"php": ">=7.2",
"illuminate/support": "~6.0",
"illuminate/filesystem": "~6.0"
},
"require-dev": {
"orchestra/testbench": "3.8.*"
"laravel/framework": "~6.0",
"phpunit/phpunit": "^7.5 || ^8.0",
"orchestra/testbench-core": "3.8.*"
},
"autoload": {
"psr-0": {

+ 0
- 26
phpunit.xml.dist View File

@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
>
<testsuites>
<testsuite name="Sitemap Test Suite">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src/Laravelium/Sitemap</directory>
<exclude>
<directory>./tests/</directory>
</exclude>
</whitelist>
</filter>
</phpunit>

+ 1
- 1
src/Laravelium/Sitemap/Model.php View File

@@ -7,7 +7,7 @@ namespace Laravelium\Sitemap;
*
* @author Roumen Damianoff <[email protected]>
*
* @version 3.0.1
* @version 6.0.1
*
* @link https://gitlab.com/Laravelium
*

+ 1
- 1
src/Laravelium/Sitemap/Sitemap.php View File

@@ -7,7 +7,7 @@ namespace Laravelium\Sitemap;
*
* @author Roumen Damianoff <[email protected]>
*
* @version 3.0.1
* @version 6.0.1
*
* @link https://gitlab.com/Laravelium
*

+ 1
- 1
src/Laravelium/Sitemap/SitemapServiceProvider.php View File

@@ -2,7 +2,7 @@

namespace Laravelium\Sitemap;

use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Contracts\Container\Container;
use Illuminate\Contracts\Routing\ResponseFactory;

Loading…
Cancel
Save