Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
e4d01268
Commit
e4d01268
authored
Dec 19, 2011
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to Doctrine Build common
parent
17f93fe7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
103 deletions
+8
-103
.gitmodules
.gitmodules
+3
-0
build.properties
build.properties
+3
-12
build.xml
build.xml
+1
-91
doctrine-build-common
lib/vendor/doctrine-build-common
+1
-0
No files found.
.gitmodules
View file @
e4d01268
...
...
@@ -4,3 +4,6 @@
[submodule "lib/vendor/Symfony/Component/Console"]
path = lib/vendor/Symfony/Component/Console
url = git://github.com/symfony/Console.git
[submodule "lib/vendor/doctrine-build-common"]
path = lib/vendor/doctrine-build-common
url = git://github.com/doctrine/doctrine-build-common.git
build.properties
View file @
e4d01268
;
Project
Name
#
Project Name
project.name
=
DoctrineDBAL
;
Build
and
Distribution
directories
build.dir
=
build
dist.dir
=
dist
;
Where
the
Pirum
files
should
be
stored
to
project.pirum_dir
=
;
Where
the
generated
download
file
should
be
pushed
to
project.download_dir
=
;
Dependency
minimum
versions
# Dependency minimum versions
dependencies.common
=
2.0.1
dependencies.sfconsole
=
2.0.0
;
Version
class
and
file
#
Version class and file
project.version_class
=
Doctrine
\D
BAL
\V
ersion
project.version_file
=
lib/Doctrine/DBAL/Version.php
build.xml
View file @
e4d01268
<?xml version="1.0"?>
<project
name=
"DoctrineDBAL"
default=
"build"
basedir=
"."
>
<taskdef
classname=
"phing.tasks.ext.d51PearPkg2Task"
name=
"d51pearpkg2"
/>
<import
file=
"${project.basedir}/lib/vendor/doctrine-build-common/packaging.xml"
/>
<property
file=
"build.properties"
/>
...
...
@@ -40,39 +41,6 @@
<include
name=
"Symfony/Component**"
/>
</fileset>
<!--
Clean the directory for the next build.
-->
<target
name=
"clean"
>
<available
file=
"./build.properties"
property=
"build_properties_exist"
value=
"true"
/>
<fail
unless=
"build_properties_exist"
message=
"The build.properties file is missing."
/>
<delete
dir=
"${build.dir}"
includeemptydirs=
"true"
/>
<delete
dir=
"${dist.dir}"
includeemptydirs=
"true"
/>
</target>
<!--
Prepare the new build directories after cleaning
-->
<target
name=
"prepare"
depends=
"clean"
>
<echo
msg=
"Creating build directory: ${build.dir}"
/>
<mkdir
dir=
"${build.dir}"
/>
<mkdir
dir=
"${build.dir}/logs"
/>
<echo
msg=
"Creating distribution directory: ${dist.dir}"
/>
<mkdir
dir=
"${dist.dir}"
/>
<exec
command=
"php -r "include '${project.basedir}/${project.version_file}';echo ${project.version_class}::VERSION;""
outputProperty=
"version"
/>
<exec
command=
"php -r "echo stripos('${version}', 'beta') ? 'beta' : stripos('${version}', 'alpha') ? 'alpha' : stripos('${version}', 'dev') ? 'devel' : 'stable';""
outputProperty=
"pear.stability"
/>
<!-- Guessing the Stability for PEAR from the version -->
<exec
command=
"php -r "\$data = json_decode(file_get_contents('composer.json'), true); \$ret = (isset(\$data['version']) && \$data['version'] != '${version}') ? 1 : 0;exit(\$ret);""
checkreturn=
"true"
passthru=
"true"
/>
<!-- We need an extra PEAR version, as pear versions dont allow dashes and need to be DEVEL not DEV" -->
<exec
command=
"php -r "echo strtolower(str_replace(array('-DEV', '-'), array('DEVEL', ''), '${version}'));""
outputProperty=
"pear.version"
/>
<echo
msg=
"Preparing release of version ${version} (${pear.version}+${pear.stability})"
/>
</target>
<!--
Builds DBAL package, preparing it for distribution.
-->
<target
name=
"copy-files"
depends=
"prepare"
>
<echo
msg=
"Checking for ${version} in ${project.version_file}"
/>
<exec
command=
"grep '${version}' ${project.basedir}/${project.version_file}"
checkreturn=
"true"
/>
...
...
@@ -120,62 +88,4 @@
</release>
</d51pearpkg2>
</target>
<target
name=
"generate-package"
>
<exec
command=
"pear package"
dir=
"${build.dir}/${project.name}-${version}"
passthru=
"true"
/>
<echo
msg=
"Moving ${project.name}-${pear.version}.tgz"
/>
<exec
command=
"mv ${project.name}-${pear.version}.tgz ${project.basedir}/${dist.dir}/"
dir=
"${build.dir}/${project.name}-${version}"
passthru=
"true"
checkreturn=
"true"
/>
<tar
destfile=
"dist/${project.name}-${version}-full.tar.gz"
compression=
"gzip"
basedir=
"${build.dir}"
>
<fileset
dir=
"${build.dir}"
>
<include
name=
"**/**"
/>
<exclude
name=
"logs/"
/>
</fileset>
</tar>
</target>
<target
name=
"pirum-release"
>
<exec
command=
"sudo pirum add ${project.pirum_dir} ${dist.dir}/${project.name}-${version}.tgz"
dir=
"."
passthru=
"true"
/>
</target>
<target
name=
"distribute-download"
>
<copy
file=
"dist/${project.name}-${version}-full.tar.gz"
todir=
"${project.download_dir}"
/>
</target>
<target
name=
"is-release-commit"
>
<echo
msg=
"Checking for release commit.."
/>
<exec
command=
"php -r "exit((stripos('${version}', '-DEV') !== false) ? 1 : 0);""
checkreturn=
"true"
/>
</target>
<target
name=
"build"
depends=
"define-pear-package,generate-package"
/>
<!-- Generate a release out of the current commit -->
<target
name=
"release"
depends=
"build,is-release-commit,distribute-download,pirum-release"
/>
<!-- Use this task to create a new release commit. -->
<target
name=
"make-release-commit"
depends=
"prepare"
>
<echo
msg=
"Making a release commit of ${version}"
/>
<exec
command=
"php -r "exit((stripos('${version}', '-DEV') === false) ? 1 : 0);""
checkreturn=
"true"
/>
<!-- verify version is correct -->
<exec
command=
"grep '${version}' ${project.basedir}/${project.version_file}"
checkreturn=
"true"
/>
<!-- get default version just without -dev -->
<exec
command=
"php -r "echo str_replace('-DEV', '', '${version}');""
outputProperty=
"next_version"
/>
<!-- prompt release master for new version number anyways -->
<propertyprompt
propertyName=
"next_version"
defaultValue=
"${next_version}"
promptText=
"Enter next version string (without -DEV)"
/>
<!-- put new version into the code -->
<exec
executable=
"perl"
>
<arg
value=
"-pi"
/>
<arg
value=
"-e"
/>
<arg
value=
"s/${version}/${next_version}/g"
/>
<arg
value=
"${project.basedir}/${project.version_file}"
/>
</exec>
<exec
executable=
"perl"
>
<arg
value=
"-pi"
/>
<arg
value=
"-e"
/>
<arg
value=
"s/"library"/"library;""version":"${version}",/g"
/>
<arg
value=
"composer.json"
/>
</exec>
<exec
command=
"git add ${project.basedir}/${project.version_file} ${project.basedir}/composer.json"
passthru=
"true"
/>
<exec
command=
"git commit -m 'Release ${next_version}'"
passthru=
"true"
/>
<exec
command=
"git tag -m 'Tag ${next_version}'"
passthru=
"true"
/>
</target>
</project>
doctrine-build-common
@
df376cca
Subproject commit df376cca0fe14b2374626610a69526bd251a067d
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment