Permalink
Browse files

Add phing and build script

  • Loading branch information...
1 parent c60c0cf commit 91f1e40d4ef157b51a324d797adb1402d431940d @VSEphpbb VSEphpbb committed Mar 31, 2016
Showing with 648 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +109 −0 build.xml
  3. +1 −0 composer.json
  4. +536 −0 composer.lock
  5. BIN composer.phar
View
2 .gitignore
@@ -0,0 +1,2 @@
+/build
+/vendor
View
109 build.xml
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="Skeleton Extension Builder" description="Builds an extension.zip from a git repository" default="all">
+ <property name="vendor-name" value="phpbb" />
+ <property name="extension-name" value="skeleton" />
+ <!--
+ Only set this to "true" if you have dependencies in the composer.json,
+ otherwise use "false".
+ -->
+ <property name="has-dependencies" value="true" />
+
+ <target name="clean-package">
+ <!--
+ Remove some unnecessary files/directories
+ ${dir}/ is the folder of your extension, e.g. ext/nickvergessen/newspage/
+ -->
+ <delete dir="${dir}/tests" />
+ <delete dir="${dir}/travis" />
+
+ <delete file="${dir}/.gitignore" />
+ <delete file="${dir}/.travis.yml" />
+ <delete file="${dir}/build.xml" />
+ <delete file="${dir}/composer.lock" />
+ <delete file="${dir}/composer.phar" />
+ <delete file="${dir}/phpunit.xml.dist" />
+ <delete file="${dir}/README.md" />
+ </target>
+
+ <!--
+ TODO: DO NOT EDIT BELOW THIS LINE!!!!
+ -->
+
+ <property name="version" value="HEAD" override="true" />
+ <property name="build-directory" value="build" override="true" />
+ <property name="package-directory" value="${build-directory}/package/${vendor-name}/${extension-name}" />
+
+ <!-- These are the main targets which you will probably want to use -->
+ <target name="all" depends="prepare-structure,package" />
+
+ <!--
+ Clean up the build directory
+ -->
+ <target name="clean">
+ <delete dir="${build-directory}" />
+ </target>
+
+ <!--
+ Recreate the necessary folders
+ -->
+ <target name="prepare-structure" depends="clean">
+ <mkdir dir="${build-directory}" />
+ <mkdir dir="${build-directory}/checkout" />
+ <mkdir dir="${build-directory}/package" />
+ <mkdir dir="${build-directory}/package/${vendor-name}" />
+ <mkdir dir="${build-directory}/package/${vendor-name}/${extension-name}" />
+ <mkdir dir="${build-directory}/upload" />
+ </target>
+
+ <!--
+ The real packaging
+ -->
+ <target name="package">
+ <echo msg="Extracting ${version}" />
+
+ <phingcall target="git-checkout">
+ <property name="archive-version" value="${version}" />
+ </phingcall>
+
+ <if>
+ <equals arg1="${has-dependencies}" arg2="1" />
+ <then>
+ <exec dir="${package-directory}" command="php composer.phar install --no-dev"
+ checkreturn="true" />
+ </then>
+ </if>
+
+ <phingcall target="clean-package">
+ <property name="dir" value="${package-directory}" />
+ </phingcall>
+
+ <!-- Try setting the package version property from composer.json -->
+ <exec dir="${package-directory}"
+ command='php -r "\$j = json_decode(file_get_contents(\"composer.json\")); echo (isset(\$j->version) ? \$j->version : \"${version}\");"'
+ checkreturn="true"
+ outputProperty='package-version' />
+
+ <phingcall target="wrap-package">
+ <property name="destination-filename" value="${build-directory}/upload/${vendor-name}_${extension-name}_${package-version}" />
+ </phingcall>
+ </target>
+
+ <!--
+ Checkout a given version and install/clean the dependencies
+ -->
+ <target name="git-checkout">
+ <echo msg="Getting archive for ${archive-version}" />
+
+ <exec command="git archive ${archive-version} --format zip --output ${build-directory}/checkout/${archive-version}.zip"
+ checkreturn="true" />
+ <unzip file="${build-directory}/checkout/${archive-version}.zip" todir="${package-directory}" />
+ </target>
+
+ <!--
+ Create the zip and tar ball
+ -->
+ <target name="wrap-package">
+ <echo msg="Creating archives (${vendor-name}/${extension-name} ${version})" />
+ <zip basedir="${build-directory}/package/" destfile="${destination-filename}.zip" />
+ </target>
+</project>
View
1 composer.json
@@ -17,6 +17,7 @@
"symfony/finder": "2.8.*"
},
"require-dev": {
+ "phing/phing": "2.4.*",
"phpbb/epv": "dev-master"
},
"extra": {
View
536 composer.lock
@@ -0,0 +1,536 @@
+{
+ "_readme": [
+ "This file locks the dependencies of your project to a known state",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
+ "This file is @generated automatically"
+ ],
+ "hash": "e43b8840cadb884d46569b0fa639a4dd",
+ "content-hash": "1d03d1083ea3b4162c5743a44ce9b951",
+ "packages": [
+ {
+ "name": "symfony/finder",
+ "version": "v2.8.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/finder.git",
+ "reference": "ca24cf2cd4e3826f571e0067e535758e73807aa1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/ca24cf2cd4e3826f571e0067e535758e73807aa1",
+ "reference": "ca24cf2cd4e3826f571e0067e535758e73807aa1",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.9"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.8-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Finder\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Finder Component",
+ "homepage": "https://symfony.com",
+ "time": "2016-03-10 10:53:53"
+ }
+ ],
+ "packages-dev": [
+ {
+ "name": "gitonomy/gitlib",
+ "version": "v0.1.8",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/gitonomy/gitlib.git",
+ "reference": "f575b8f7da917ade7890c6aa705fa22545690389"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/gitonomy/gitlib/zipball/f575b8f7da917ade7890c6aa705fa22545690389",
+ "reference": "f575b8f7da917ade7890c6aa705fa22545690389",
+ "shasum": ""
+ },
+ "require": {
+ "symfony/process": "^2.3|^3.0"
+ },
+ "require-dev": {
+ "psr/log": "^1.0"
+ },
+ "suggest": {
+ "psr/log": "Add some log"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Gitonomy\\Git\\": "src/Gitonomy/Git/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Alexandre Salomé",
+ "email": "[email protected]",
+ "homepage": "http://alexandre-salome.fr"
+ },
+ {
+ "name": "Julien DIDIER",
+ "email": "[email protected]",
+ "homepage": "http://www.jdidier.net"
+ }
+ ],
+ "description": "Library for accessing git",
+ "homepage": "http://gitonomy.com",
+ "time": "2015-12-01 22:25:57"
+ },
+ {
+ "name": "nikic/php-parser",
+ "version": "v0.9.5",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nikic/PHP-Parser.git",
+ "reference": "ef70767475434bdb3615b43c327e2cae17ef12eb"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/ef70767475434bdb3615b43c327e2cae17ef12eb",
+ "reference": "ef70767475434bdb3615b43c327e2cae17ef12eb",
+ "shasum": ""
+ },
+ "require": {
+ "ext-tokenizer": "*",
+ "php": ">=5.2"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "0.9-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "PHPParser": "lib/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Nikita Popov"
+ }
+ ],
+ "description": "A PHP parser written in PHP",
+ "keywords": [
+ "parser",
+ "php"
+ ],
+ "time": "2014-07-23 18:24:17"
+ },
+ {
+ "name": "phing/phing",
+ "version": "2.4.14",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phingofficial/phing.git",
+ "reference": "41075d93ca254f1c90c79ec7ce81be2b2629e138"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phingofficial/phing/zipball/41075d93ca254f1c90c79ec7ce81be2b2629e138",
+ "reference": "41075d93ca254f1c90c79ec7ce81be2b2629e138",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.2.0"
+ },
+ "bin": [
+ "bin/phing"
+ ],
+ "type": "library",
+ "autoload": {
+ "classmap": [
+ "classes/phing/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "include-path": [
+ "classes"
+ ],
+ "license": [
+ "LGPL3"
+ ],
+ "authors": [
+ {
+ "name": "Michiel Rook",
+ "email": "[email protected]",
+ "role": "Lead"
+ },
+ {
+ "name": "Phing Community",
+ "homepage": "http://www.phing.info/trac/wiki/Development/Contributors"
+ }
+ ],
+ "description": "PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.",
+ "homepage": "http://www.phing.info/",
+ "keywords": [
+ "build",
+ "task",
+ "tool"
+ ],
+ "time": "2012-11-29 21:23:47"
+ },
+ {
+ "name": "phpbb/epv",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpbb/epv.git",
+ "reference": "20988361847a65198f2ac15a225e3f4d9ca3030c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpbb/epv/zipball/20988361847a65198f2ac15a225e3f4d9ca3030c",
+ "reference": "20988361847a65198f2ac15a225e3f4d9ca3030c",
+ "shasum": ""
+ },
+ "require": {
+ "gitonomy/gitlib": "0.1.*@dev",
+ "nikic/php-parser": "0.9.*@dev",
+ "php": ">=5.3.3",
+ "sensiolabs/ansi-to-html": "~1.1",
+ "symfony/console": "~2.3",
+ "symfony/finder": "~2.3",
+ "symfony/process": "~2.3",
+ "symfony/yaml": "~2.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "4.4.*",
+ "phpunit/phpunit-mock-objects": "2.3.*"
+ },
+ "bin": [
+ "src/EPV.php"
+ ],
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Phpbb\\Epv\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "GPL-2.0"
+ ],
+ "authors": [
+ {
+ "name": "Paul Sohier",
+ "email": "[email protected]"
+ }
+ ],
+ "description": "A extension validator for phpBB extensions. Extensions are required to pass the validator when submitted to the extension database.",
+ "time": "2016-01-31 18:06:43"
+ },
+ {
+ "name": "sensiolabs/ansi-to-html",
+ "version": "v1.1.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sensiolabs/ansi-to-html.git",
+ "reference": "02598b975c510e9e7d07d0be0a89c7a6b43464d6"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sensiolabs/ansi-to-html/zipball/02598b975c510e9e7d07d0be0a89c7a6b43464d6",
+ "reference": "02598b975c510e9e7d07d0be0a89c7a6b43464d6",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "suggest": {
+ "twig/twig": "Provides nice templating features"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.1-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "SensioLabs\\AnsiConverter": "."
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "[email protected]"
+ }
+ ],
+ "description": "A library to convert a text with ANSI codes to HTML",
+ "time": "2015-07-22 03:07:58"
+ },
+ {
+ "name": "symfony/console",
+ "version": "v2.8.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/console.git",
+ "reference": "9a5aef5fc0d4eff86853d44202b02be8d5a20154"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/console/zipball/9a5aef5fc0d4eff86853d44202b02be8d5a20154",
+ "reference": "9a5aef5fc0d4eff86853d44202b02be8d5a20154",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.9",
+ "symfony/polyfill-mbstring": "~1.0"
+ },
+ "require-dev": {
+ "psr/log": "~1.0",
+ "symfony/event-dispatcher": "~2.1|~3.0.0",
+ "symfony/process": "~2.1|~3.0.0"
+ },
+ "suggest": {
+ "psr/log": "For using the console logger",
+ "symfony/event-dispatcher": "",
+ "symfony/process": ""
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.8-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Console\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Console Component",
+ "homepage": "https://symfony.com",
+ "time": "2016-03-17 09:19:04"
+ },
+ {
+ "name": "symfony/polyfill-mbstring",
+ "version": "v1.1.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-mbstring.git",
+ "reference": "1289d16209491b584839022f29257ad859b8532d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/1289d16209491b584839022f29257ad859b8532d",
+ "reference": "1289d16209491b584839022f29257ad859b8532d",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "suggest": {
+ "ext-mbstring": "For best performance"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.1-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Mbstring\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill for the Mbstring extension",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "mbstring",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "time": "2016-01-20 09:13:37"
+ },
+ {
+ "name": "symfony/process",
+ "version": "v2.8.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/process.git",
+ "reference": "fb467471952ef5cf8497c029980e556b47545333"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/process/zipball/fb467471952ef5cf8497c029980e556b47545333",
+ "reference": "fb467471952ef5cf8497c029980e556b47545333",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.9"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.8-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Process\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Process Component",
+ "homepage": "https://symfony.com",
+ "time": "2016-03-23 13:11:46"
+ },
+ {
+ "name": "symfony/yaml",
+ "version": "v2.8.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/yaml.git",
+ "reference": "584e52cb8f788a887553ba82db6caacb1d6260bb"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/yaml/zipball/584e52cb8f788a887553ba82db6caacb1d6260bb",
+ "reference": "584e52cb8f788a887553ba82db6caacb1d6260bb",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.9"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.8-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Yaml\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "[email protected]"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Yaml Component",
+ "homepage": "https://symfony.com",
+ "time": "2016-03-04 07:54:35"
+ }
+ ],
+ "aliases": [],
+ "minimum-stability": "stable",
+ "stability-flags": {
+ "phpbb/epv": 20
+ },
+ "prefer-stable": false,
+ "prefer-lowest": false,
+ "platform": {
+ "php": ">=5.3.3"
+ },
+ "platform-dev": []
+}
View
BIN composer.phar
Binary file not shown.

0 comments on commit 91f1e40

Please sign in to comment.