File: GitCloneTaskTest.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 (41 lines) | stat: -rw-r--r-- 1,369 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0"?>
<project name="gitCloneTest" default="invalid">

    <import file="GitTestFunction.xml"/>

    <target name="invalid">
        <fail>This file should only be run via a testcase</fail>
    </target>
    
    <target name="gitClone" description="Clone read-only github repo">
        <gitclone
                gitPath="${git-path}"
            singleBranch="true"
            repository="${repo.dir.resolved}"
            targetPath="${tmp.dir.resolved}" />
	</target>

    <target name="gitCloneBare" description="Clone bare github repo">
        <gitclone
                gitPath="${git-path}"
            singleBranch="true"
            repository="${repo.dir.resolved}"
            targetPath="${tmp.dir.resolved}"
            bare="true" />
	</target>

    <target name="wrongRepository" description="Path to repository not found">
        <gitclone
                gitPath="${git-path}"
            repository="this-is-plain-wrong" 
            targetPath="${tmp.dir.resolved}" />
	</target>

    <target name="noRepository" description="No repo dir argument provided">
        <gitclone gitPath="${git-path}" targetPath="${tmp.dir.resolved}" />
    </target>

    <target name="noTargetPath" description="No target path argument provided">
        <gitclone gitPath="${git-path}" repository="${repo.dir.resolved}" />
    </target>
</project>