File: build.xml

package info (click to toggle)
phing 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,868 kB
  • sloc: php: 59,850; xml: 9,713; sql: 78; makefile: 39; sh: 14
file content (43 lines) | stat: -rw-r--r-- 1,183 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
42
43
<?xml version="1.0" ?>
<project name="DbDeploy Test" default="build">

    <target name="prepare">
        <mkdir dir="scripts"/>
    
        <pdosqlexec src="changelog.sql" url="sqlite:test.db"
        delimitertype="normal"/>
        <dbdeploy
            url="sqlite:test.db"
            dir="deltas"
            outputfile="scripts/deploy-1.sql"
            undooutputfile="scripts/undo-1.sql"
            />
    </target>
    
    <target name="testDeploy">            
        <pdosqlexec src="scripts/deploy-1.sql" url="sqlite:test.db"
        delimitertype="normal"/>

        <dbdeploy
            url="sqlite:test.db"
            dir="deltas"
            outputfile="scripts/deploy-2.sql"
            undooutputfile="scripts/undo-2.sql"
            />
    </target>

    <target name="testUndo">
        <pdosqlexec src="scripts/undo-1.sql" url="sqlite:test.db"
        delimitertype="normal"/>

        <dbdeploy
            url="sqlite:test.db"
            dir="deltas"
            outputfile="scripts/deploy-2.sql"
            undooutputfile="scripts/undo-2.sql"
            />

        <delete dir="scripts"/>
        <delete file="test.db"/>
    </target>
</project>