File: GitDescribeTaskTest.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 (20 lines) | stat: -rw-r--r-- 679 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
<?xml version="1.0"?>
<project name="gitDescribeTest" default="invalid">

    <import file="GitTestFunction.xml"/>

    <target name="invalid">
        <fail>This file should only be run via a testcase</fail>
    </target>

    <target name="gitDescribeTask">
        <!-- obtain test repo -->
        <gitclone
                gitPath="${git-path}"
            singleBranch="true"
            repository="${repo.dir.resolved}"
            targetPath="${tmp.dir.resolved}" />
        <gittag gitPath="${git-path}" repository="${tmp.dir.resolved}" name="ver1.0" />
        <gitdescribe gitPath="${git-path}" repository="${tmp.dir.resolved}" tags="true"/>
    </target>
</project>