-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from msvrtan/initial
Initial
- Loading branch information
Showing
41 changed files
with
7,247 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Save as .codeclimate.yml (note leading .) in project root directory | ||
languages: | ||
JavaScript: true | ||
PHP: true | ||
exclude_paths: | ||
- "web/static/javascript/vendor/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
service_name: travis-ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/bin/ | ||
/composer.phar | ||
/tmp | ||
/vendor/ | ||
#PHPStorm folder | ||
/.idea | ||
#backup files from unix editors | ||
*~ | ||
#merge files | ||
*.orig | ||
#Ignoring MacDS_Store files | ||
.DS_Store | ||
|
||
#Ignoring .vagrant folder | ||
/.vagrant | ||
/*.sh | ||
/.ant-targets-build.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
language: php | ||
sudo: false | ||
matrix: | ||
include: | ||
- php: 5.6 | ||
env: coverage=phpunit | ||
- php: 5.6 | ||
env: coverage=phpspec | ||
fast_finish: true | ||
|
||
cache: | ||
directories: | ||
- vendor | ||
- bin | ||
|
||
before_script: | ||
- if [[ $coverage == 'phpspec' ]]; then cp etc/ci/phpspec.yml phpspec.yml; fi; | ||
- sed -i 's/^/;/' ~/.phpenv/versions/$(phpenv global)/etc/conf.d/xdebug.ini | ||
- composer install --prefer-source | ||
- mkdir build/cov -p | ||
- mkdir build/logs -p | ||
script: | ||
- if [[ $coverage == 'phpunit' ]]; then sed -i 's/^;//' ~/.phpenv/versions/$(phpenv global)/etc/conf.d/xdebug.ini; fi; | ||
- php -d 'xdebug.max_nesting_level=500' bin/phpunit | ||
- if [[ $coverage == 'phpunit' ]]; then sed -i 's/^/;/' ~/.phpenv/versions/$(phpenv global)/etc/conf.d/xdebug.ini; fi; | ||
- if [[ $coverage == 'phpunit' ]]; then php bin/coveralls -v; fi; | ||
- if [[ $coverage == 'phpunit' ]]; then php bin/test-reporter -v; fi; | ||
- if [[ $coverage == 'phpspec' ]]; then sed -i 's/^;//' ~/.phpenv/versions/$(phpenv global)/etc/conf.d/xdebug.ini; fi; | ||
- ./bin/phpspec run --no-interaction | ||
- if [[ $coverage == 'phpspec' ]]; then sed -i 's/^/;/' ~/.phpenv/versions/$(phpenv global)/etc/conf.d/xdebug.ini; fi; | ||
- if [[ $coverage == 'phpspec' ]]; then php bin/coveralls -v; fi; | ||
- if [[ $coverage == 'phpspec' ]]; then php bin/test-reporter -v; fi; | ||
- ant php-cs-fixer-check-task | ||
- ant phpcs-task | ||
- ant phpmd-task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
# github-object-api-facade | ||
# github-object-api-facade | ||
|
||
[![Build Status](https://scrutinizer-ci.com/g/devboard/github-object-api-facade/badges/build.png?b=master)](https://scrutinizer-ci.com/g/devboard/github-object-api-facade/build-status/master) | ||
[![Circle CI](https://circleci.com/gh/devboard/github-object-api-facade/tree/master.svg?style=svg)](https://circleci.com/gh/devboard/github-object-api-facade/tree/master) | ||
[![Build Status](https://travis-ci.org/devboard/github-object-api-facade.svg?branch=master)](https://travis-ci.org/devboard/github-object-api-facade) | ||
|
||
[![Coverage Status](https://coveralls.io/repos/devboard/github-object-api-facade/badge.svg?branch=master)](https://coveralls.io/r/devboard/github-object-api-facade?branch=master) | ||
[![Test Coverage](https://codeclimate.com/github/devboard/github-object-api-facade/badges/coverage.svg)](https://codeclimate.com/github/devboard/github-object-api-facade/coverage) | ||
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/devboard/github-object-api-facade/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/devboard/github-object-api-facade/?branch=master) | ||
[![Code Climate](https://codeclimate.com/github/devboard/github-object-api-facade/badges/gpa.svg)](https://codeclimate.com/github/devboard/github-object-api-facade) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<project name="DevBoardLib" default="build"> | ||
<property | ||
name="my.project.tmp.exec.output" | ||
value="${tmp.dir}/exec-output.txt"/> | ||
|
||
<target name="test" | ||
depends="phpspec,phpunit"> | ||
</target> | ||
|
||
<target name="fix-codestandards" | ||
depends="php-cs-fixer-fix-task,check-codestandards"> | ||
</target> | ||
<target name="check-codestandards" | ||
depends="php-cs-fixer-check-task,phpmd-task,phpcs-task"> | ||
</target> | ||
|
||
<target name="phpspec" description=""> | ||
<exec executable="bin/phpspec" failonerror="false" resultproperty="phpspecresult" | ||
outputproperty="phpspecoutput"> | ||
<arg value="run"/> | ||
<arg value="-v"/> | ||
</exec> | ||
<fail message="${phpspecoutput}"> | ||
<condition> | ||
<isfailure code="${phpspecresult}"/> | ||
</condition> | ||
</fail> | ||
</target> | ||
|
||
<target name="phpspec-code-coverage" description=""> | ||
<exec executable="bin/phpspec" failonerror="false" resultproperty="phpspecresult" | ||
outputproperty="phpspecoutput"> | ||
<arg value="run"/> | ||
<arg value="-v"/> | ||
<arg value="-c"/> | ||
<arg value="etc/ci/phpspec.yml"/> | ||
</exec> | ||
<fail message="${phpspecoutput}"> | ||
<condition> | ||
<isfailure code="${phpspecresult}"/> | ||
</condition> | ||
</fail> | ||
</target> | ||
|
||
<target name="phpunit" description=""> | ||
<exec executable="bin/phpunit" failonerror="false" resultproperty="phpunitresult" | ||
outputproperty="phpunitoutput"/> | ||
<fail message="${phpunitoutput}"> | ||
<condition> | ||
<isfailure code="${phpunitresult}"/> | ||
</condition> | ||
</fail> | ||
</target> | ||
<target name="php-cs-fixer-fix-task" description="Run php-cs-fixer fix in parallel"> | ||
<parallel failonany="true" threadCount="2"> | ||
<antcall target="php-cs-fixer-fix"> | ||
<param name="path" value="src"/> | ||
</antcall> | ||
<antcall target="php-cs-fixer-fix"> | ||
<param name="path" value="spec"/> | ||
</antcall> | ||
<antcall target="php-cs-fixer-fix"> | ||
<param name="path" value="tests"/> | ||
</antcall> | ||
</parallel> | ||
</target> | ||
<target name="php-cs-fixer-check-task" description="Run php-cs-fixer dry-run in parallel"> | ||
<parallel failonany="true" threadCount="2"> | ||
<antcall target="php-cs-fixer-check"> | ||
<param name="path" value="src"/> | ||
</antcall> | ||
<antcall target="php-cs-fixer-check"> | ||
<param name="path" value="spec"/> | ||
</antcall> | ||
<antcall target="php-cs-fixer-check"> | ||
<param name="path" value="tests"/> | ||
</antcall> | ||
</parallel> | ||
</target> | ||
<target name="phpmd-task" description="Run phpmd in parallel"> | ||
<parallel failonany="true" threadCount="2"> | ||
<antcall target="phpmd"> | ||
<param name="path" value="src"/> | ||
</antcall> | ||
<antcall target="phpmd"> | ||
<param name="path" value="tests"/> | ||
</antcall> | ||
</parallel> | ||
</target> | ||
<target name="phpcs-task" description="Run phpcs in parallel"> | ||
<parallel failonany="true" threadCount="2"> | ||
<antcall target="phpcs"> | ||
<param name="path" value="src"/> | ||
</antcall> | ||
<antcall target="phpcs"> | ||
<param name="path" value="tests"/> | ||
</antcall> | ||
</parallel> | ||
</target> | ||
|
||
<target name="php-cs-fixer-fix" description=""> | ||
<exec executable="bin/php-cs-fixer" failonerror="false"> | ||
<arg value="fix"/> | ||
<arg path="${basedir}/${path}"/> | ||
<arg value="--level=symfony"/> | ||
<arg value="--fixers=short_array_syntax,align_double_arrow,align_equals,no_blank_lines_before_namespace,ordered_use,phpdoc_order,-unused_use,-empty_return"/> | ||
</exec> | ||
</target> | ||
<target name="php-cs-fixer-check" description=""> | ||
<exec executable="bin/php-cs-fixer" failonerror="true"> | ||
<arg value="fix"/> | ||
<arg path="${basedir}/${path}"/> | ||
<arg value="--dry-run"/> | ||
<arg value="--diff"/> | ||
<arg value="--level=symfony"/> | ||
<arg value="--fixers=short_array_syntax,align_double_arrow,align_equals,no_blank_lines_before_namespace,ordered_use,phpdoc_order,-unused_use,-empty_return"/> | ||
</exec> | ||
</target> | ||
<target name="phpmd" description=""> | ||
<exec executable="bin/phpmd" failonerror="true"> | ||
<arg path="${basedir}/${path}"/> | ||
<arg value="text"/> | ||
<arg value="phpmd.xml"/> | ||
</exec> | ||
</target> | ||
<target name="phpcs" description=""> | ||
<exec executable="bin/phpcs" failonerror="true"> | ||
<arg value="--standard=phpcs.xml"/> | ||
<arg path="${basedir}/${path}"/> | ||
<arg value="-n"/> | ||
</exec> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
machine: | ||
php: | ||
version: 5.6.5 | ||
general: | ||
artifacts: | ||
- "build/" | ||
- "tmp/" | ||
dependencies: | ||
cache_directories: | ||
- "vendor" | ||
- "bin" | ||
test: | ||
override: | ||
- php -d 'xdebug.max_nesting_level=500' bin/phpunit | ||
- ./bin/phpspec run --no-interaction | ||
#- ./bin/behat --strict | ||
- ant php-cs-fixer-check-task | ||
- ant phpcs-task | ||
- ant phpmd-task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"name": "devboard/github-object-api-facade", | ||
"description": "Github Object API facade", | ||
"license": "proprietary", | ||
"type": "project", | ||
"autoload": { | ||
"psr-4": { | ||
"DevBoardLib\\GithubObjectApiFacade\\": "src/", | ||
"spec\\DevBoardLib\\GithubObjectApiFacade\\": "spec/", | ||
"tests\\DevBoardLib\\GithubObjectApiFacade\\": "tests/" | ||
} | ||
}, | ||
"require": { | ||
"php": ">=5.3.9", | ||
"knplabs/github-api": "~1.4", | ||
"devboard/github-api-facade": "^0.1" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "~4", | ||
"mockery/mockery": "~0.9", | ||
"phpspec/phpspec": "~2.0", | ||
"henrikbjorn/phpspec-code-coverage": "~1.0", | ||
"coduo/phpspec-data-provider-extension": "^1.0", | ||
"ciaranmcnulty/phpspec-typehintedmethods": "~1.1", | ||
"rmiller/exemplify-extension": "~0.2", | ||
"behat/behat": "~3.0", | ||
"behat/mink-extension": "~2.0", | ||
"behat/mink": "~1.6", | ||
"rmiller/behat-spec": "~0.2", | ||
"phpmd/phpmd": "~2.1", | ||
"squizlabs/php_codesniffer": "2.*", | ||
"fabpot/php-cs-fixer": "~1.5", | ||
"vinkla/climb": "^0.7.0", | ||
"satooshi/php-coveralls": "0.6.*", | ||
"codeclimate/php-test-reporter": "@dev" | ||
}, | ||
"scripts": { | ||
}, | ||
"config": { | ||
"bin-dir": "bin" | ||
}, | ||
"extra": { | ||
} | ||
} |
Oops, something went wrong.