forked from jonwingfield/Faker.Net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58ce9ae
commit 3d549f2
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0"?> | ||
<project name="Faker.NET" default="build" basedir="."> | ||
<description>Faker.NET</description> | ||
|
||
<property name="mode" value="Release" unless="${property::exists('mode')}" /> | ||
<property name="output" value="./bin/${mode}" readonly="true" /> | ||
<property name="debug" value="true" if="${mode == 'Debug'}" readonly="true" /> | ||
<property name="debug" value="false" if="${mode == 'Release'}" readonly="true" /> | ||
|
||
<echo message="Build Mode: ${mode}" /> | ||
<echo message="Output: ${output}" /> | ||
|
||
<target name="build"> | ||
<echo message="Building Faker.Net" /> | ||
<csc target="library" debug="${debug}" output="${output}/Faker.dll"> | ||
<sources> | ||
<include name="./Faker.Net/*.cs" /> | ||
<include name="./Faker.Net/Extensions/*.cs" /> | ||
<include name="./Faker.Net/Properties/AssemblyInfo.cs" /> | ||
</sources> | ||
</csc> | ||
</target> | ||
|
||
<target name="test" depends="build"> | ||
<echo message="Building Faker.Net unit-tests" /> | ||
<csc target="library" debug="${debug}" output="${output}/Faker.Tests.dll"> | ||
<references> | ||
<include name="${output}/Faker.dll" /> | ||
<include name="./NUnit/nunit.framework.dll" /> | ||
</references> | ||
<sources> | ||
<include name="./Faker.Net.NUnit.Tests/*.cs" /> | ||
<include name="./Faker.Net.NUnit.Tests/Properties/AssemblyInfo.cs" />> | ||
</sources> | ||
</csc> | ||
|
||
<echo message="Running Faker.Net unit-tests" /> | ||
<nunit2> | ||
<formatter type="Plain" /> | ||
<test assemblyname="${output}/Faker.Tests.dll" /> | ||
</nunit2> | ||
</target> | ||
|
||
<target name="clean"> | ||
<echo message="Cleaning ${output}" /> | ||
<delete dir="${output}" includeemptydirs="true" />> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters