Skip to content

Commit

Permalink
Add settings for AppVeyor.
Browse files Browse the repository at this point in the history
  • Loading branch information
clown committed Jul 26, 2017
1 parent f589755 commit 52ae15f
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 1 deletion.
49 changes: 49 additions & 0 deletions AppVeyor.yml
@@ -0,0 +1,49 @@
# --------------------------------------------------------------------------- #
# general configuration
# --------------------------------------------------------------------------- #
version: 1.4.0.{build}
branches:
except:
- net35
skip_tags: true

# --------------------------------------------------------------------------- #
# environment configuration
# --------------------------------------------------------------------------- #
clone_folder: C:\Cube\Cube.FileSystem
image: Visual Studio 2017
nuget:
project_feed: true
disable_publish_on_pr: true

# --------------------------------------------------------------------------- #
# build configuration
# --------------------------------------------------------------------------- #
platform: Any CPU
configuration: Release
before_build:
- ps: Start-FileDownload 'https://ci.appveyor.com/api/projects/clown/7z/artifacts/7z.dll'
- ps: Start-FileDownload 'https://ci.appveyor.com/api/projects/clown/7z/artifacts/7z.sfx'
- nuget sources add -name Cube.Core -source https://ci.appveyor.com/nuget/cube.core
- nuget sources add -name Cube.Images -source https://ci.appveyor.com/nuget/cube.images
- nuget sources add -name Cube.Forms -source https://ci.appveyor.com/nuget/cube.forms
- nuget restore Cube.FileSystem.sln
build:
parallel: true
project: Cube.FileSystem.sln
publish_nuget: true
verbosity: normal
after_build:
- copy /Y ".\7z.*" ".\Tests\bin\Release"
- copy /Y ".\7z.*" ".\Applications\Ice.Tests\bin\Release"

# --------------------------------------------------------------------------- #
# tests configuration
# --------------------------------------------------------------------------- #
test_script:
- ..\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"nunit3-console.exe" -targetargs:"Cube.FileSystem.Tests.dll" -targetdir:".\Tests\bin\Release" -hideskipped:All -output:CoverResult1.xml
- ..\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"nunit3-console.exe" -targetargs:"Cube.FileSystem.App.Ice.Tests.dll" -targetdir:".\Applications\Ice.Tests\bin\Release" -hideskipped:All -output:CoverResult2.xml
after_test:
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f "CoverResult1.xml" "CoverResult2.xml"
2 changes: 2 additions & 0 deletions Applications/Ice.Tests/Packages.config
Expand Up @@ -5,4 +5,6 @@
<package id="Cube.Images" version="1.4.0" targetFramework="net45" />
<package id="log4net" version="2.0.8" targetFramework="net45" />
<package id="NUnit" version="3.7.1" targetFramework="net45" />
<package id="OpenCover" version="4.6.519" targetFramework="net45" />
<package id="ReportGenerator" version="2.5.7" targetFramework="net45" />
</packages>
Binary file added Icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Libraries/Cube.FileSystem.csproj
Expand Up @@ -30,7 +30,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="AlphaFS, Version=2.1.0.0, Culture=neutral, PublicKeyToken=4d31a58f7d7ad5c9, processorArchitecture=MSIL">
<Reference Include="AlphaFS">
<HintPath>..\..\packages\AlphaFS.2.1.3\lib\net45\AlphaFS.dll</HintPath>
</Reference>
<Reference Include="log4net">
Expand Down
6 changes: 6 additions & 0 deletions NuGet.config
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value="..\packages" />
</config>
</configuration>
2 changes: 2 additions & 0 deletions Tests/Packages.config
Expand Up @@ -3,4 +3,6 @@
<package id="Cube.Core" version="1.4.2" targetFramework="net45" />
<package id="log4net" version="2.0.8" targetFramework="net45" />
<package id="NUnit" version="3.7.1" targetFramework="net45" />
<package id="OpenCover" version="4.6.519" targetFramework="net45" />
<package id="ReportGenerator" version="2.5.7" targetFramework="net45" />
</packages>

0 comments on commit 52ae15f

Please sign in to comment.