Skip to content

Commit

Permalink
Use NuGet packages to be compatible with AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharparam committed Mar 9, 2015
1 parent fd7a2b3 commit 917e863
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .nuget/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="coveralls.io" version="1.2.2" />
<package id="NUnit.Runners" version="2.6.4" />
<package id="OpenCover" version="4.5.3723" />
</packages>
7 changes: 6 additions & 1 deletion Colore.Tests/Colore.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL" />
<Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
Expand All @@ -72,6 +74,9 @@
<Name>Colore</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
4 changes: 4 additions & 0 deletions Colore.Tests/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnit" version="2.6.4" targetFramework="net45" />
</packages>
5 changes: 5 additions & 0 deletions Colore.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Colore.Tests", "Colore.Tests\Colore.Tests.csproj", "{54CE955B-DE44-43CE-830D-13D30BB2FB02}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{0D7AD1CD-C34D-473C-BDED-4B7E6F5B6906}"
ProjectSection(SolutionItems) = preProject
.nuget\packages.config = .nuget\packages.config
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Expand Down
14 changes: 12 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
version: 1.0.0.{build}
version: 1.0.{build}

install:
- nuget restore

configuration:
- Debug
- Release

platform:
- x86
Expand All @@ -11,6 +13,10 @@ platform:
matrix:
fast_finish: true

environment:
COVERALLS_REPO_TOKEN:
secure: MFfyfqucK824o3YhdTCIzsccWHO+oHKnqR9veWZLwC1+1lMaXoZTtyvJHi2NwXUp

assembly_info:
patch: true
file: Colore\Properties\AssemblyInfo.cs
Expand All @@ -25,6 +31,10 @@ build:
project: Colore.sln
verbosity: normal

after_test:
- packages\OpenCover.4.5.3723\OpenCover.Console.exe -register:user -filter:"+[Colore*]* -[*Tests]*" -target:"packages\NUnit.Runners.2.6.4\tools\nunit-console.exe" -targetargs:"/noshadow /domain:single Colore.Tests\bin\%PLATFORM%\%CONFIGURATION%\Colore.Tests.dll" -output:coverage.xml
- packages\coveralls.io.1.2.2\tools\coveralls.net.exe --opencover coverage.xml

artifacts:
- path: Colore\bin\$(platform)\$(configuration)\Colore.dll
name: dll_only
Expand Down

0 comments on commit 917e863

Please sign in to comment.