diff --git a/Build.cmd b/Build.cmd deleted file mode 100644 index 3886073..0000000 --- a/Build.cmd +++ /dev/null @@ -1,9 +0,0 @@ -@ECHO OFF - -SET msbuild="%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" - -%msbuild% ConventionTests.proj - -IF NOT ERRORLEVEL 0 EXIT /B %ERRORLEVEL% - -pause \ No newline at end of file diff --git a/ConventionTests.proj b/ConventionTests.proj deleted file mode 100644 index d0b11ef..0000000 --- a/ConventionTests.proj +++ /dev/null @@ -1,58 +0,0 @@ - - - - $(MSBuildProjectDirectory)\ - Any CPU - Debug - $(Root)tools\MSBuildCommunityTasks - $(MSBuildProjectDirectory)\packages\NUnit.Runners.2.6.2\tools\ - $(NUnitHome)nunit-console.exe - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0.0.0.0 - - - - - - diff --git a/Samples/SampleApp.Tests/SqlScriptTests.cs b/Samples/SampleApp.Tests/SqlScriptTests.cs index 1670778..c86a91b 100644 --- a/Samples/SampleApp.Tests/SqlScriptTests.cs +++ b/Samples/SampleApp.Tests/SqlScriptTests.cs @@ -10,6 +10,7 @@ public class SqlScriptTests { [Test] + [Explicit] // Only works when shadow copy disabled for tests public void SqlScriptsShouldBeEmbeddedResources() { Convention.Is(new FilesAreEmbeddedResources(".sql"), new ProjectFileItems(typeof(DomainClass).Assembly)); diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..5712680 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,27 @@ +install: + - choco install gitversion.portable -pre -y + +assembly_info: + patch: false + +before_build: + - nuget restore + - gitversion /l console /output buildserver /updateAssemblyInfo + +platform: + - Any CPU + +configuration: + - Debug + +build: + project: ConventionTests.sln + +after_build: + - cmd: ECHO nuget pack TestStack.ConventionTests\TestStack.ConventionTests.nuspec -version "%GitVersion_NuGetVersion%" -BasePath TestStack.ConventionTests\bin\%CONFIGURATION% + - cmd: nuget pack TestStack.ConventionTests\TestStack.ConventionTests.nuspec -version "%GitVersion_NuGetVersion%" -BasePath TestStack.ConventionTests\bin\%CONFIGURATION% + - cmd: ECHO nuget pack TestStack.ConventionTests.Autofac\TestStack.ConventionTests.Autofac.nuspec -version "%GitVersion_NuGetVersion%" -BasePath TestStack.ConventionTests.Autofac\bin\%CONFIGURATION% + - cmd: nuget pack TestStack.ConventionTests.Autofac\TestStack.ConventionTests.Autofac.nuspec -version "%GitVersion_NuGetVersion%" -BasePath TestStack.ConventionTests.Autofac\bin\%CONFIGURATION% + + - cmd: appveyor PushArtifact "TestStack.ConventionTests.%GitVersion_NuGetVersion%.nupkg" + - cmd: appveyor PushArtifact "TestStack.ConventionTests.Autofac.%GitVersion_NuGetVersion%.nupkg" \ No newline at end of file