File: GitInitTaskTest.xml

package info (click to toggle)
phing 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,368 kB
  • sloc: php: 59,821; xml: 9,767; sql: 78; makefile: 39; sh: 14
file content (26 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0"?>
<project name="gitInitTest" default="invalid">

    <import file="GitTestFunction.xml"/>

    <target name="invalid">
        <fail>This file should only be run via a testcase</fail>
    </target>
    
    <target name="gitInit" description="Initialize normal git repository">
        <gitinit gitPath="${git-path}" repository="${tmp.dir.resolved}"/>
	</target>

    <target name="gitInitBare" description="Initialize bare repository">
        <gitinit gitPath="${git-path}" bare="true" repository="${tmp.dir.resolved}"/>
	</target>


    <target name="wrongRepository" description="Wrong repository directory">
        <gitinit gitPath="${git-path}" repository="this-is-plain-wrong"/>
	</target>

    <target name="noRepository" description="No repo dir argument provided">
        <gitinit gitPath="${git-path}" />
    </target>
</project>