aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.nant/bamboo.build
blob: 0afb09abfcabc1f34b69234a2c69273cf986bdff (plain)
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
<?xml version="1.0" ?>
<project name="OpenSim" default="build">
  <target name="build">
    <exec program="mono" commandline="../bin/Prebuild.exe /target nant" />
    <nant buildfile="../OpenSim.build" target="build" />
  </target>
  <target name="cibuild">
    <property name="projectdir" value="opensim-0.5.10" />
    <exec program="mono" commandline="bin/Prebuild.exe /target nant" workingdir="../" />
    <nant buildfile="../OpenSim.build" target="clean" />
    <nant buildfile="../OpenSim.build" target="build" />

    <delete dir="../${projectdir}" />
    <copy todir="../${projectdir}">
      <fileset basedir="../">
        <include name="ThirdPartyLicenses/**" />
        <include name="CONTRIBUTORS.txt" />
        <include name="README" />
        <include name="bin/**" />
      </fileset>
    </copy>

    <exec program="svn" commandline="info" workingdir="../" output="../${projectdir}/svn.info" />
    <touch file="../${projectdir}/bin/startup_commands.txt" />

    <!-- Re-create the directory containig test results. -->
    <delete dir="../test-results" />
    <mkdir dir="../test-results" />
    <!-- Copy the OdePlugin dll to bin/ for testing. -->
    <copy file="../bin/Physics/OpenSim.Region.Physics.OdePlugin.dll" tofile="../bin/OpenSim.Region.Physics.OdePlugin.dll" />


    <!-- Run the tests. -->
    <nunit2 failonerror="false">
      <formatter type="Xml" usefile="true" extension=".xml" outputdir="../test-results" />
      <test>
        <assemblies>
          <include name="../bin/OpenSim.Framework.Tests.dll" />
          <include name="../bin/OpenSim.Framework.Servers.Tests.dll" />
          <include name="../bin/OpenSim.Region.ScriptEngine.Common.Tests.dll" />
          <include name="../bin/OpenSim.Region.ScriptEngine.Shared.Tests.dll" />
          <include name="../bin/OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.dll" />
          <include name="../bin/OpenSim.Region.Environment.Tests.dll" />
          <include name="../bin/OpenSim.Data.SQLite.Tests.dll" />
          <include name="../bin/OpenSim.Data.MySQL.Tests.dll" />
          
        </assemblies>
      </test>
    </nunit2>

    <zip zipfile="../${projectdir}.zip">
      <fileset basedir="../${projectdir}" prefix="${projectdir}">
        <include name="**/*" />
      </fileset>
    </zip>
    <tar destfile="../${projectdir}.tar.gz" compression="GZip">
      <fileset basedir="../${projectdir}" prefix="${projectdir}">
        <include name="**/*" />
      </fileset>
    </tar>

    <copy file="../${projectdir}.zip" tofile="/home/buildsystem/public_html/${projectdir}-TRUNK.zip" overwrite="true" />
    <copy file="../${projectdir}.tar.gz" tofile="/home/buildsystem/public_html/${projectdir}-TRUNK.tar.gz" overwrite="true" />

<!--
    <echo message="Generating Doxygen documentation" />
    <exec program="doxygen" workingdir="../doc" commandline="doxygen.conf" />
    <exec program="rsync" workingdir="../doc" commandline="-az - - delete html/ /home/afrisby/public_html/docs/html/" />
-->
 <!-- ensure a clean checkout each time -->
  </target>
</project>