File: NAnt.SourceControl.build

package info (click to toggle)
nant 0.85-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 12,704 kB
  • ctags: 6,757
  • sloc: cs: 50,420; makefile: 129; cpp: 70; xml: 40; sh: 1
file content (41 lines) | stat: -rw-r--r-- 1,912 bytes parent folder | download | duplicates (3)
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="NAnt.SourceControl" default="test">
    <!--
        Required properties:
            * build.dir             - (path) root level to build to, assemblies will go in ${build.dir}/bin
            * build.debug           - (true|false) debug build?
            * current.build.defines - framework-specific build defines
    -->
    <target name="build">
        <!-- build test assembly -->
        <csc target="library" define="${current.build.defines}" warnaserror="true" debug="${build.debug}" output="${build.dir}/bin/${project::get-name()}.Tests.dll">
            <nowarn>
                <!-- do not report warnings for missing XML comments -->
                <warning number="1591" />
            </nowarn>
            <sources>
                <include name="**/*.cs" />
                <!-- common assembly-level attributes -->
                <include name="../../src/CommonAssemblyInfo.cs" />
            </sources>
            <references>
                <!-- temporary workaround for Mono Runtime bug #57602 -->
                <include name="${lib.framework.dir}/log4net.dll" />
                <!-- end workaround -->
                <include name="${build.dir}/bin/NAnt.Core.dll" />
                <include name="${build.dir}/bin/NAnt.Core.Tests.dll" />
                <include name="${lib.framework.dir}/nunit.framework.dll" />
            </references>
        </csc>
    </target>
    <target name="test" depends="build">
         <nunit2>
            <formatter type="Plain" />
            <test assemblyname="${build.dir}/bin/${project::get-name()}.Tests.dll" appconfig="${path::combine(nant::get-base-directory(), 'nant.tests.config')}">
                <categories>
                    <exclude name="InetAccess" />
                </categories>
            </test>
         </nunit2>
    </target>
</project>