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
ea184c94
Commit
ea184c94
authored
May 23, 2010
by
Roman S. Borschel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates for dependency management.
parent
705b61aa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
82 additions
and
5 deletions
+82
-5
.gitignore
.gitignore
+2
-0
build-dependencies.properties
build-dependencies.properties
+5
-0
build-dependencies.xml
build-dependencies.xml
+62
-0
build.xml
build.xml
+12
-1
TestInit.php
tests/Doctrine/Tests/TestInit.php
+1
-4
No files found.
.gitignore
View file @
ea184c94
...
@@ -3,3 +3,5 @@ build/
...
@@ -3,3 +3,5 @@ build/
logs/
logs/
reports/
reports/
dist/
dist/
download/
lib/Doctrine/Common
build-dependencies.properties
0 → 100644
View file @
ea184c94
dependencies
=
common
common.version
=
2.0.0-BETA1
common.srcdir
=
lib/Doctrine/Common
common.targetdir
=
lib/Doctrine/Common
build-dependencies.xml
0 → 100644
View file @
ea184c94
<?xml version="1.0"?>
<project
name=
"Doctrine Dependency Management"
default=
"resolve-dependencies"
basedir=
"."
>
<property
file=
"build-dependencies.properties"
/>
<property
name=
"download.dir"
value=
"download"
/>
<target
name=
"resolve-dependencies"
description=
"Resolves the project dependencies."
>
<echo
message=
"Resolving dependencies"
/>
<foreach
list=
"${dependencies}"
param=
"dependency"
target=
"resolve-dependency"
/>
</target>
<target
name=
"resolve-dependency"
>
<fail
unless=
"${dependency}.version"
message=
"${dependency}.version not set."
/>
<fail
unless=
"${dependency}.srcdir"
message=
"${dependency}.srcdir not set."
/>
<fail
unless=
"${dependency}.targetdir"
message=
"${dependency}.targetdir not set."
/>
<property
name=
"dependency.version"
value=
"${${dependency}.version}"
/>
<property
name=
"dependency.srcdir"
value=
"${${dependency}.srcdir}"
/>
<property
name=
"dependency.targetdir"
value=
"${${dependency}.targetdir}"
/>
<echo
message=
"${dependency.targetdir}"
/>
<!--
Check out dependency. If ${dependency.targetdir} does not exist or versions dont match.
When done, place version info file into ${dependency.targetdir}.
-->
<available
file=
"${dependency.targetdir}"
type=
"dir"
property=
"target.dir.exists"
/>
<if>
<istrue
value=
"${target.dir.exists}"
/>
<then>
<property
file=
"${dependency.targetdir}/current-version.properties"
/>
</then>
</if>
<if>
<or>
<isfalse
value=
"${target.dir.exists}"
/>
<not><equals
arg1=
"${dependency.version}"
arg2=
"${current.version}"
/></not>
</or>
<then>
<echo
message=
"Fetching dependency '${dependency}' at version '${dependency.version}'."
/>
<delete
dir=
"${download.dir}/${dependency}"
includeemptydirs=
"true"
/>
<mkdir
dir=
"${download.dir}/${dependency}"
/>
<exec
command=
"git clone git://github.com/doctrine/${dependency}.git ${download.dir}/${dependency}"
/>
<exec
command=
"git checkout ${dependency.version}"
dir=
"${download.dir}/${dependency}"
/>
<delete
dir=
"${dependency.targetdir}"
includeemptydirs=
"true"
/>
<copy
todir=
"${dependency.targetdir}"
>
<fileset
dir=
"${download.dir}/${dependency}/${dependency.srcdir}"
>
<include
name=
"**"
/>
</fileset>
</copy>
<delete
file=
"${dependency.targetdir}/current-version.properties"
/>
<touch
file=
"${dependency.targetdir}/current-version.properties"
/>
<append
destFile=
"${dependency.targetdir}/current-version.properties"
text=
"current.version=${dependency.version}"
/>
<delete
dir=
"${download.dir}/${dependency}"
includeemptydirs=
"true"
/>
</then>
<else>
<echo
message=
"Dependency ${dependency} is available in the correct version: ${dependency.version}."
/>
</else>
</if>
</target>
</project>
build.xml
View file @
ea184c94
...
@@ -4,7 +4,9 @@
...
@@ -4,7 +4,9 @@
Doctrine 2 build file.
Doctrine 2 build file.
-->
-->
<project
name=
"Doctrine2"
default=
"build"
basedir=
"."
>
<project
name=
"Doctrine DBAL"
default=
"build"
basedir=
"."
>
<import
file=
"build-dependencies.xml"
/>
<taskdef
classname=
"phing.tasks.ext.d51PearPkg2Task"
name=
"d51pearpkg2"
/>
<taskdef
classname=
"phing.tasks.ext.d51PearPkg2Task"
name=
"d51pearpkg2"
/>
<taskdef
classname=
"NativePhpunitTask"
classpath=
"./tools/"
name=
"nativephpunit"
/>
<taskdef
classname=
"NativePhpunitTask"
classpath=
"./tools/"
name=
"nativephpunit"
/>
...
@@ -27,6 +29,13 @@
...
@@ -27,6 +29,13 @@
<include
name=
"doctrine.php"
/>
<include
name=
"doctrine.php"
/>
</fileset>
</fileset>
<!--
Fileset for the sources of the Doctrine Common dependency.
-->
<fileset
id=
"common-sources"
dir=
"./lib"
>
<include
name=
"Doctrine/Common/**"
/>
</fileset>
<!--
<!--
Fileset for the sources of the Doctrine DBAL package.
Fileset for the sources of the Doctrine DBAL package.
-->
-->
...
@@ -44,6 +53,7 @@
...
@@ -44,6 +53,7 @@
</target>
</target>
<target
name=
"prepare"
depends=
"clean"
>
<target
name=
"prepare"
depends=
"clean"
>
<phingcall
target=
"resolve-dependencies"
/>
<echo
msg=
"Creating build directory: ${build.dir}"
/>
<echo
msg=
"Creating build directory: ${build.dir}"
/>
<mkdir
dir=
"${build.dir}"
/>
<mkdir
dir=
"${build.dir}"
/>
<echo
msg=
"Creating distribution directory: ${dist.dir}"
/>
<echo
msg=
"Creating distribution directory: ${dist.dir}"
/>
...
@@ -59,6 +69,7 @@
...
@@ -59,6 +69,7 @@
<fileset
refid=
"shared-artifacts"
/>
<fileset
refid=
"shared-artifacts"
/>
</copy>
</copy>
<copy
todir=
"${build.dir}/dbal/DoctrineDBAL-${version}"
>
<copy
todir=
"${build.dir}/dbal/DoctrineDBAL-${version}"
>
<fileset
refid=
"common-sources"
/>
<fileset
refid=
"dbal-sources"
/>
<fileset
refid=
"dbal-sources"
/>
</copy>
</copy>
</target>
</target>
...
...
tests/Doctrine/Tests/TestInit.php
View file @
ea184c94
...
@@ -8,10 +8,7 @@ error_reporting(E_ALL | E_STRICT);
...
@@ -8,10 +8,7 @@ error_reporting(E_ALL | E_STRICT);
require_once
'PHPUnit/Framework.php'
;
require_once
'PHPUnit/Framework.php'
;
require_once
'PHPUnit/TextUI/TestRunner.php'
;
require_once
'PHPUnit/TextUI/TestRunner.php'
;
require_once
__DIR__
.
'/../../../lib/vendor/doctrine-common/lib/Doctrine/Common/ClassLoader.php'
;
require_once
__DIR__
.
'/../../../lib/Doctrine/Common/ClassLoader.php'
;
$classLoader
=
new
\Doctrine\Common\ClassLoader
(
'Doctrine\Common'
,
__DIR__
.
"/../../../lib/vendor/doctrine-common/lib"
);
$classLoader
->
register
();
$classLoader
=
new
\Doctrine\Common\ClassLoader
(
'Doctrine'
);
$classLoader
=
new
\Doctrine\Common\ClassLoader
(
'Doctrine'
);
$classLoader
->
register
();
$classLoader
->
register
();
...
...
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