-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
81 lines (69 loc) · 2.21 KB
/
build.xml
File metadata and controls
81 lines (69 loc) · 2.21 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<project
xmlns:if="ant:if"
xmlns:unless="ant:unless">
<loadproperties srcFile="DESCRIPTION" />
<property name="tarfile" value="provGraphR_${Version}.tar.gz" />
<target name="roxygenize">
<exec executable="Rscript" >
<arg line="-e roxygen2::roxygenise()"/>
</exec>
</target>
<target name="build" depends="roxygenize">
<exec executable="R" >
<arg line="CMD build --no-build-vignettes ."/>
</exec>
</target>
<target name="check" depends="build">
<exec executable="R" >
<arg line="CMD check --no-vignettes --no-build-vignettes ${tarfile}"/>
</exec>
</target>
<target name="install" depends="check">
<exec executable="R" >
<arg line="CMD INSTALL ${tarfile}"/>
</exec>
</target>
<target name="install-no-check">
<exec executable="R" >
<arg line="CMD INSTALL ${tarfile}"/>
</exec>
</target>
<target name="create-json">
<antcall target="json">
<param name="theFile" value="basic.R"/>
</antcall>
<antcall target="json">
<param name="theFile" value="empty.R"/>
</antcall>
<antcall target="json">
<param name="theFile" value="no-data-edges.R"/>
</antcall>
<antcall target="json">
<param name="theFile" value="simple.R"/>
</antcall>
<antcall target="json">
<param name="theFile" value="order.R"/>
</antcall>
<antcall target="json">
<param name="theFile" value="ForwardOrder.R"/>
</antcall>
</target>
<target name="json">
<echo message="${theFile}"/>
<exec executable="Rscript" dir="inst/testscripts">
<arg line="-e "rdtLite::prov.run('${theFile}', prov.dir='.')""/>
</exec>
<basename property="scriptname" file="${theFile}" suffix="R" />
<move file="inst/testscripts/prov_${scriptname}/prov.json" tofile="inst/testdata/${scriptname}.json" />
<delete dir="inst/testscripts/prov_${scriptname}" />
</target>
<target name="cran-check" depends="build, create-json">
<exec executable="R" >
<arg line="CMD check --as-cran --no-vignettes --no-build-vignettes ${tarfile}"/>
</exec>
</target>
<target name="clean">
<delete dir="provGraphR.Rcheck" verbose="false"/>
<delete file="${tarfile}" verbose="false"/>
</target>
</project>