mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 02:44:52 +08:00
Troubleshooting automated build
Server has a different implementation of NUnit task. Using x86 sqlite for that environment. --HG-- branch : dev
This commit is contained in:
10
Orchard.proj
10
Orchard.proj
@@ -51,19 +51,25 @@
|
||||
<!-- Testing -->
|
||||
|
||||
<Target Name ="Test">
|
||||
<PropertyGroup>
|
||||
<UseSqlite64 Condition="'$(teamcity_version)'=='' And '$(BuildPlatform)' == 'x64'">True</UseSqlite64>
|
||||
</PropertyGroup>
|
||||
|
||||
<Message Condition="'$(UseSqlite64)' == 'True'" Text="Testing with x64 version of Sqlite"/>
|
||||
|
||||
<CreateItem Include="$(CompileFolder)\*.Tests.*dll">
|
||||
<Output TaskParameter="Include" ItemName="TestAssemblies" />
|
||||
</CreateItem>
|
||||
|
||||
<!-- use x64 sqlite for tests depending on build platform -->
|
||||
<Copy Condition="$(BuildPlatform) == 'x64'"
|
||||
<Copy Condition="'$(UseSqlite64)' == 'True'"
|
||||
SourceFiles="$(LibFolder)\sqlite\x64\System.Data.SQLite.dll"
|
||||
DestinationFiles="$(CompileFolder)\System.Data.SQLite.dll" />
|
||||
|
||||
<NUnit Assemblies="@(TestAssemblies)" ToolPath="$(LibFolder)\nunit" WorkingDirectory="$(CompileFolder)" OutputXmlFile="$(BuildFolder)\Orchard.Tests.xml" />
|
||||
|
||||
<!-- restore sqlite version if needed -->
|
||||
<Copy Condition="$(BuildPlatform) == 'x64'"
|
||||
<Copy Condition="'$(UseSqlite64)' == 'True'"
|
||||
SourceFiles="$(LibFolder)\sqlite\System.Data.SQLite.dll"
|
||||
DestinationFiles="$(CompileFolder)\System.Data.SQLite.dll" />
|
||||
</Target>
|
||||
|
Reference in New Issue
Block a user