Skip to content

Commit bab61bf

Browse files
committed
Introduce CI
1 parent bc437a2 commit bab61bf

File tree

6 files changed

+55
-3
lines changed

6 files changed

+55
-3
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
/vendor/
1+
.idea
2+
vendor
23
composer.lock
4+
build

.travis.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
language: php
2+
sudo: false
3+
php:
4+
- 5.6
5+
- 7.0
6+
- 7.1
7+
- 7.2
8+
9+
before_install:
10+
- composer self-update
11+
12+
install:
13+
- travis_retry composer install --no-interaction --prefer-source
14+
15+
script:
16+
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
17+
18+
after_success:
19+
- travis_retry php vendor/bin/php-coveralls -v

LICENSE

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2018 Vsevolod Vietluzhskykh
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Array Extensions
22

3+
[![Build Status](https://travis-ci.com/Sevavietl/Arrays.svg?branch=master)](https://travis-ci.com/Sevavietl/Arrays)
4+
[![Coverage Status](https://coveralls.io/repos/github/Sevavietl/Arrays/badge.svg)](https://coveralls.io/github/Sevavietl/Arrays)
5+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6+
37
This is a collection of array wrappers.
48

59
Table of Contents

composer.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
"email": "sevavietl@gmail.com"
1313
}
1414
],
15-
"require": {},
15+
"require": {
16+
"php": ">=5.6"
17+
},
1618
"require-dev": {
17-
"phpunit/phpunit": "5.5.*"
19+
"phpunit/phpunit": "5.5.*",
20+
"php-coveralls/php-coveralls": "^2.1"
1821
},
1922
"autoload": {
2023
"psr-4": {

phpunit.xml renamed to phpunit.xml.dist

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
processIsolation="false"
1010
stopOnFailure="false"
1111
syntaxCheck="false">
12+
<filter>
13+
<whitelist processUncoveredFilesFromWhitelist="true">
14+
<directory suffix=".php">./src</directory>
15+
</whitelist>
16+
</filter>
1217
<testsuites>
1318
<testsuite name="unit">
1419
<directory suffix="Test.php">tests/unit/</directory>

0 commit comments

Comments
 (0)