Skip to content

Commit 4e72fb2

Browse files
committed
First
0 parents  commit 4e72fb2

File tree

13 files changed

+999
-0
lines changed

13 files changed

+999
-0
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
end_of_line = lf
4+
insert_final_newline = true
5+
indent_style = space
6+
indent_size = 4
7+
charset = utf-8
8+
trim_trailing_whitespace = true

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/tests export-ignore
2+
/.gitattributes export-ignore
3+
/.gitignore export-ignore
4+
/.travis.yml export-ignore
5+
/.scrutinizer.yml export-ignore
6+
/.editorconfig export-ignore
7+
/phpunit.xml export-ignore

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vendor
2+
report

.scrutinizer.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
inherit: true
2+
tools:
3+
external_code_coverage: true
4+
checks:
5+
php:
6+
code_rating: true
7+
duplication: true
8+
filter:
9+
paths: [src/*, tests/*]

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
language: php
2+
php:
3+
- 5.4
4+
- 5.5
5+
- 5.6
6+
before_script:
7+
- composer install --no-interaction --prefer-dist
8+
script:
9+
- vendor/bin/phpunit --coverage-clover=coverage.clover --coverage-html coverage
10+
- wget https://scrutinizer-ci.com/ocular.phar
11+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
12+
after_success:
13+
- git config --global user.email "travis@travis-ci.org"
14+
- git config --global user.name "Travis"
15+
- cp -R coverage ${HOME}/coverage
16+
- cd ${HOME}
17+
- git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/typedphp/array-functions.git
18+
gh-pages > /dev/null
19+
- cd gh-pages
20+
- mkdir ${TRAVIS_BRANCH}
21+
- cd ${TRAVIS_BRANCH}
22+
- cp -Rf $HOME/coverage/* .
23+
- git add -f .
24+
- git commit -m "Travis pushed coverage of ${TRAVIS_COMMIT}@${TRAVIS_BRANCH} to gh-pages"
25+
- git push -fq origin gh-pages > /dev/null
26+
branches:
27+
only:
28+
- master
29+
- dev
30+
env:
31+
global:
32+
secure: ZZo7xkLEiTXprABgx/nFk1poVJP4m3EL1LkaTW1QdV0b8MushE6PlwQNwYeUefjHkPFUzgU1x4LSf4dJHJm4ZFOH49sqCKDNybO3gxG1hjopGYv5SSkKB15BBCHf1ArIcvj38r3YZerRVBGWVmjX+t8MGzpyiwEzEUvmlsHNN40=

composer.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "typedphp/array-functions",
3+
"description": "",
4+
"license": "MIT",
5+
"authors": [
6+
{
7+
"name": "Christopher Pitt",
8+
"email": "cgpitt@gmail.com"
9+
}
10+
],
11+
"require": {
12+
"php": ">=5.4.0"
13+
},
14+
"autoload": {
15+
"files": [
16+
"src/ArrayFunctions.php"
17+
]
18+
},
19+
"require-dev": {
20+
"phpunit/phpunit": "4.*"
21+
},
22+
"autoload-dev": {
23+
"files": [
24+
"tests/Test.php"
25+
],
26+
"psr-4": {
27+
"TypedPHP\\Functions\\ArrayFunctions\\Test\\": "tests"
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)