Skip to content

Commit 1d1c280

Browse files
committed
First
0 parents  commit 1d1c280

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+8657
-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: [source/*, tests/*]

.travis.yml

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

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog
2+
3+
## 0.1.0
4+
5+
First release.

composer.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "typedphp/string-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+
"typedphp/type-functions": "*"
14+
},
15+
"autoload": {
16+
"files": [
17+
"src/StringFunctions.php"
18+
]
19+
},
20+
"require-dev": {
21+
"php": ">=5.5.0",
22+
"phpunit/phpunit": "4.*"
23+
},
24+
"autoload-dev": {
25+
"files": [
26+
"tests/Test.php"
27+
],
28+
"psr-4": {
29+
"TypedPHP\\Functions\\StringFunctions\\Test\\": "tests"
30+
}
31+
}
32+
}

0 commit comments

Comments
 (0)