Skip to content

Commit 73ee06f

Browse files
committed
Initial commit
0 parents  commit 73ee06f

File tree

14 files changed

+655
-0
lines changed

14 files changed

+655
-0
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/.buildpath
2+
/.project
3+
/.settings
4+
/.idea
5+
/bin
6+
/build
7+
/phpunit.xml
8+
/tools
9+
/vendor
10+
cache.properties

.php_cs

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?php
2+
$finder = Symfony\CS\Finder\DefaultFinder::create()
3+
->files()
4+
->in('src')
5+
->in('tests')
6+
->name('*.php');
7+
8+
return Symfony\CS\Config\Config::create()
9+
->setUsingCache(true)
10+
->level(\Symfony\CS\FixerInterface::NONE_LEVEL)
11+
->fixers(
12+
array(
13+
'align_double_arrow',
14+
'align_equals',
15+
'concat_with_spaces',
16+
'duplicate_semicolon',
17+
'elseif',
18+
'empty_return',
19+
'encoding',
20+
'eof_ending',
21+
'extra_empty_lines',
22+
'function_call_space',
23+
'function_declaration',
24+
'indentation',
25+
'join_function',
26+
'line_after_namespace',
27+
'linefeed',
28+
'list_commas',
29+
'lowercase_constants',
30+
'lowercase_keywords',
31+
'method_argument_space',
32+
'multiple_use',
33+
'namespace_no_leading_whitespace',
34+
'no_blank_lines_after_class_opening',
35+
'no_empty_lines_after_phpdocs',
36+
'parenthesis',
37+
'php_closing_tag',
38+
'phpdoc_indent',
39+
'phpdoc_no_access',
40+
'phpdoc_no_empty_return',
41+
'phpdoc_no_package',
42+
'phpdoc_params',
43+
'phpdoc_scalar',
44+
'phpdoc_separation',
45+
'phpdoc_to_comment',
46+
'phpdoc_trim',
47+
'phpdoc_types',
48+
'phpdoc_var_without_name',
49+
'remove_lines_between_uses',
50+
'return',
51+
'self_accessor',
52+
'short_array_syntax',
53+
'short_tag',
54+
'single_line_after_imports',
55+
'single_quote',
56+
'spaces_before_semicolon',
57+
'spaces_cast',
58+
'ternary_spaces',
59+
'trailing_spaces',
60+
'trim_array_spaces',
61+
'unused_use',
62+
'visibility',
63+
'whitespacy_lines'
64+
)
65+
)
66+
->finder($finder);
67+

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
os:
2+
- linux
3+
4+
language: php
5+
6+
before_install:
7+
- wget https://phar.io/releases/phive.phar
8+
- wget https://phar.io/releases/phive.phar.asc
9+
- gpg --keyserver hkps.pool.sks-keyservers.net --recv-keys 0x9B2D5D79
10+
- gpg --verify phive.phar.asc phive.phar
11+
- chmod +x phive.phar
12+
- sudo mv phive.phar /usr/bin/phive
13+
14+
install:
15+
- ant setup
16+
17+
script: ./tools/phpunit
18+
19+
php:
20+
- 5.6
21+
- 7.0
22+
- 7.1
23+
- 7.0snapshot
24+
- 7.1snapshot
25+
- master
26+
27+
matrix:
28+
allow_failures:
29+
- php: master
30+
fast_finish: true
31+
32+
notifications:
33+
email: false

LICENSE

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Phar.io - Executor
2+
3+
Copyright (c) 2015-2017 Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de> and contributors
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without modification,
7+
are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice,
10+
this list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
* Neither the name of Arne Blankerts nor the names of contributors
17+
may be used to endorse or promote products derived from this software
18+
without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT * NOT LIMITED TO,
22+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
24+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
25+
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30+
POSSIBILITY OF SUCH DAMAGE.
31+

build.xml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project name="Executor" default="setup">
3+
<target name="setup" depends="clean,install-tools,install-dependencies"/>
4+
5+
<target name="clean" unless="clean.done" description="Cleanup build artifacts">
6+
<delete dir="${basedir}/tools"/>
7+
<delete dir="${basedir}/vendor"/>
8+
<delete file="${basedir}/src/autoload.php"/>
9+
10+
<property name="clean.done" value="true"/>
11+
</target>
12+
13+
<target name="prepare" unless="prepare.done" depends="clean" description="Prepare for build">
14+
<property name="prepare.done" value="true"/>
15+
</target>
16+
17+
<target name="install-dependencies" unless="dependencies-installed" depends="-dependencies-installed" description="Install dependencies with Composer">
18+
<exec executable="composer" taskname="composer">
19+
<env key="COMPOSER_DISABLE_XDEBUG_WARN" value="1"/>
20+
<arg value="update"/>
21+
<arg value="--no-interaction"/>
22+
<arg value="--no-progress"/>
23+
<arg value="--no-ansi"/>
24+
<arg value="--no-suggest"/>
25+
<arg value="--optimize-autoloader"/>
26+
<arg value="--prefer-stable"/>
27+
</exec>
28+
</target>
29+
30+
<target name="install-tools" unless="tools-installed" depends="-tools-installed" description="Install tools with Phive">
31+
<exec executable="phive" taskname="phive">
32+
<arg value="install"/>
33+
<arg value="--trust-gpg-keys" />
34+
<arg value="4AA394086372C20A,2A8299CE842DD38C" />
35+
</exec>
36+
</target>
37+
38+
<target name="test" depends="install-tools,install-dependencies" description="Run tests">
39+
<exec executable="${basedir}/tools/phpunit" taskname="phpunit"/>
40+
</target>
41+
42+
<target name="-dependencies-installed">
43+
<available file="${basedir}/composer.lock" property="dependencies-installed"/>
44+
</target>
45+
46+
<target name="-tools-installed">
47+
<available file="${basedir}/tools" property="tools-installed" type="dir"/>
48+
</target>
49+
</project>
50+

composer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name" : "phar-io/executor",
3+
"description" : "",
4+
"license" : "BSD-3-Clause",
5+
"authors" : [
6+
{
7+
"name" : "Arne Blankerts",
8+
"email" : "arne@blankerts.de",
9+
"role" : "Developer"
10+
},
11+
{
12+
"name" : "Sebastian Heuer",
13+
"email" : "sebastian@phpeople.de",
14+
"role" : "Developer"
15+
}
16+
],
17+
"support" : {
18+
"issues" : "https://github.com/phar-io/executor/issues"
19+
},
20+
"require" : {
21+
"php" : ">=5.6.0",
22+
"phar-io/filesystem" : "1.0.x-dev"
23+
},
24+
"autoload": {
25+
"classmap": [
26+
"src/"
27+
]
28+
},
29+
"minimum-stability" : "dev",
30+
"prefer-stable" : true,
31+
"extra": {
32+
"branch-alias": {
33+
"dev-master": "1.0.x-dev"
34+
}
35+
}
36+
37+
}

phive.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phive xmlns="https://phar.io/phive">
3+
<phar name="phpunit" version="^5.7" installed="5.7.16" location="./tools/phpunit"/>
4+
<phar name="phpab" version="^1.23.0" installed="1.23.0" location="./tools/phpab"/>
5+
</phive>

phpcs.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="phar.io">
3+
<description>Phar.io's coding standard</description>
4+
5+
<rule ref="PSR2">
6+
<exclude name="PSR2.Classes.ClassDeclaration" />
7+
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration" />
8+
<exclude name="Generic.NamingConventions.UpperCaseConstantName" />
9+
<exclude name="PSR2.ControlStructures.SwitchDeclaration" />
10+
</rule>
11+
12+
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
13+
14+
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
15+
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/>
16+
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"/>
17+
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
18+
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
19+
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
20+
21+
<rule ref="Generic.ControlStructures.InlineControlStructure"/>
22+
23+
<rule ref="Generic.PHP.NoSilencedErrors"/>
24+
25+
<rule ref="Generic.WhiteSpace.ScopeIndent"/>
26+
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
27+
28+
</ruleset>

phpdox.xml.dist

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<phpdox xmlns="http://xml.phpdox.net/config" silent="false">
3+
4+
<project name="PharIo/Executor" source="${basedir}/src" workdir="${basedir}/build/docs/xml">
5+
6+
<collector publiconly="false" backend="parser" />
7+
8+
<generator output="${basedir}/build/docs/docs">
9+
10+
<enrich base="${basedir}/build/logs">
11+
<source type="build" />
12+
<source type="git">
13+
<history enabled="true" limit="15" />
14+
</source>
15+
<source type="checkstyle" />
16+
<!-- alternative checkstyler to support phpcs xml output -->
17+
<!-- <source type="phpcs" /> -->
18+
<source type="pmd" />
19+
<source type="phploc" />
20+
<source type="phpunit">
21+
<coverage path="coverage/xml" />
22+
</source>
23+
</enrich>
24+
25+
<build engine="html" enabled="true" output="html">
26+
<template dir="${phpDox.home}/templates/html" />
27+
<file extension="xhtml" />
28+
</build>
29+
30+
<build engine="xml" enabled="true" output="xml" />
31+
32+
</generator>
33+
</project>
34+
35+
</phpdox>

0 commit comments

Comments
 (0)