Permalink
Browse files

Moved to Rake/Albacore build solution for better CI/Mono.

  • Loading branch information...
1 parent f402477 commit eecd157afd34d6e6aae8112d2dc83a4abfe587c8 @ianbattersby ianbattersby committed Jan 23, 2013
Showing 566 changed files with 250 additions and 21,328 deletions.
View
@@ -34,4 +34,6 @@ Simple.Web.ncrunchsolution.user
docs
*.ndproj
nohup.out
-*.Tests.dll.xml
+*.Tests.dll.xml
+*.DotSettings
+src/CommonAssemblyInfo.cs
View
@@ -1,18 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-#if (DEBUG)
-[assembly: AssemblyConfiguration("Debug")]
-#else
-[assembly: AssemblyConfiguration("Release")]
-#endif
-[assembly: AssemblyCompany("Mark Rendle")]
-[assembly: AssemblyProduct("Simple.Web")]
-[assembly: AssemblyCopyright("Copyright © Mark Rendle 2012")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-[assembly: ComVisible(false)]
-
-[assembly: AssemblyVersion("0.5.3.1")]
-[assembly: AssemblyFileVersion("0.5.3.1")]
@@ -1,21 +0,0 @@
-<Project DefaultTargets="Test" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-
- <UsingTask
- AssemblyFile="packages\xunit.1.9.1\lib\net20\xunit.runner.msbuild.dll"
- TaskName="Xunit.Runner.MSBuild.xunit"/>
-
- <Target Name="Test">
- <xunit Assembly="Tests\Simple.Web.Tests\bin\Release\Simple.Web.Tests.dll" Xml="Simple.Web.Tests.dll.xml"/>
- <xunit Assembly="Tests\Simple.Web.Autofac.Tests\bin\Release\Simple.Web.Autofac.Tests.dll" Xml="Simple.Web.Autofac.Tests.dll.xml"/>
- <xunit Assembly="Tests\Simple.Web.CodeGeneration.Tests\bin\Release\Simple.Web.CodeGeneration.Tests.dll" Xml="Simple.Web.CodeGeneration.Tests.dll.xml"/>
- <xunit Assembly="Tests\Simple.Web.ContentTypeHandling.Tests\bin\Release\Simple.Web.ContentTypeHandling.Tests.dll" Xml="Simple.Web.ContentTypeHandling.Tests.dll.xml"/>
- <xunit Assembly="Tests\Simple.Web.JsonFx.Tests\bin\Release\Simple.Web.JsonFx.Tests.dll" Xml="Simple.Web.JsonFx.Tests.dll.xml"/>
- <xunit Assembly="Tests\Simple.Web.JsonNet.Tests\bin\Release\Simple.Web.JsonNet.Tests.dll" Xml="Simple.Web.JsonNet.Tests.dll.xml"/>
- <xunit Assembly="Tests\Simple.Web.Ninject.Tests\bin\Release\Simple.Web.Ninject.Tests.dll" Xml="Simple.Web.Ninject.Tests.dll.xml"/>
- <xunit Assembly="Tests\Simple.Web.Razor.Tests\bin\Release\Simple.Web.Razor.Tests.dll" Xml="Simple.Web.Razor.Tests.dll.xml"/>
- <xunit Assembly="Tests\Simple.Web.StructureMap.Tests\bin\Release\Simple.Web.StructureMap.Tests.dll" Xml="Simple.Web.StructureMap.Tests.dll.xml"/>
- <xunit Assembly="Tests\Simple.Web.Xml.Tests\bin\Release\Simple.Web.Xml.Tests.dll" Xml="Simple.Web.Xml.Tests.dll.xml"/>
- <xunit Assembly="Simple.Web.Routing.Tests\bin\Release\Simple.Web.Routing.Tests.dll" Xml="Simple.Web.Routing.Tests.dll.xml"/>
- </Target>
-
-</Project>
View
@@ -0,0 +1 @@
+BUILD_VERSION = "0.6.0"
View
@@ -1,58 +0,0 @@
-#I @"tools/FAKE"
-#r "FakeLib.dll"
-open Fake
-
-let mutable buildDir = @"./build/"
-let testDir = @"./test/"
-let fxReferences = !! @"*/*.csproj"
-let testReferences = !! @"Tests/**/*.csproj"
-let buildTargets = environVarOrDefault "BUILDTARGETS" ""
-
-let isMono = System.Environment.OSVersion.Platform = System.PlatformID.Unix
-
-Target "Clean" (fun _ ->
- CleanDirs [buildDir]
-)
-
-Target "Build" (fun _ ->
- MSBuild buildDir "Build" ["Configuration","Release"; "VSToolsPath",buildTargets] fxReferences
- |> Log "Build-Output: "
-)
-
-Target "OutputToTest" (fun _ ->
- buildDir <- testDir
-)
-
-Target "BuildTest" (fun _ ->
- MSBuild buildDir "Build" ["Configuration","Release"; "VSToolsPath",buildTargets] testReferences
- |> Log "Test-Output: "
-)
-
-Target "Test" (fun _ ->
- !! (testDir + @"/*.Tests.dll")
- |> xUnit (fun p ->
- { p with
- ShadowCopy = true;
- HtmlOutput = not isMono;
- XmlOutput = not isMono;
- OutputDir = buildDir })
-)
-
-"OutputToTest"
- ==> "BuildTest"
-
-"Clean"
- ==> "Build"
-
-"Clean"
- ==> "BuildTest"
-
-"Build"
- =?> ("BuildTest", isMono)
-
-"BuildTest"
- ==> "Test"
-
-Target "Default" DoNothing
-
-RunParameterTargetOrDefault "target" "Default"
View
@@ -1,9 +0,0 @@
-@echo off
-
-SET TARGET="Default"
-
-IF NOT [%1]==[] (set TARGET="%1")
-
-"tools\FAKE\Fake.exe" "build.fsx" "target=%TARGET%"
-
-exit /b %errorlevel%
View
@@ -1,35 +0,0 @@
-#!/bin/bash
-TARGET=$1
-BUILDTARGETS=$2
-MONOVERSION=`mono --version`
-
-if [ -z "$BUILDTARGETS" ]
- then
- BUILDTARGETS="/Library/Frameworks/Mono.framework/Libraries/mono/xbuild/Microsoft/VisualStudio/v9.0"
-fi
-
-if [ -z "$TARGET" ]
- then
- CTARGET="Default"
- echo -e "No build action specified, assuming '${CTARGET}'.\nAvailable actions are \"Clean\", \"Build\", \"BuildTest\", or \"Test\".\n"
-else
- CTARGET=`echo ${TARGET:0:1} | tr "[:lower:]" "[:upper:]"``echo ${TARGET:1}`
-fi
-
-if [ ! -d "$BUILDTARGETS" ]
- then
- echo "BuildTargets directory '${BUILDTARGETS}' does not exist."
- exit $?
-else
- export BUILDTARGETS="$BUILDTARGETS"
-fi
-
-if [[ (! "$MONOVERSION" =~ "version "[2]"."[1-9][1-9]"."[4-9]) && (! "$MONOVERSION" =~ "version "[3-9]".") ]]
- then
- echo -e "You must have Mono version 2.11.4+ installed to compile Simple.Web.\nVisit http://www.go-mono.com/mono-downloads/download.html for the latest version."
- exit 1
-fi
-
-echo "Executing command: $CTARGET"
-
-mono tools/FAKE/Fake.exe build.fsx target=$CTARGET #verbose details
@@ -1,10 +0,0 @@
-Copyright (c) 2009, James Gregory
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- * The name of James Gregory may not be used to endorse or promote products derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<configuration>
- <appSettings>
- <add key="MSBuildPath" value="c:\Windows\Microsoft.NET\Framework\v4.0.30319\;c:\Windows\Microsoft.NET\Framework\v4.0.30128\;c:\Windows\Microsoft.NET\Framework\v3.5\" />
- <add key="FSIPath" value=".\tools\FSharp\;.\lib\FSharp\;[ProgramFiles]\Microsoft F#\v4.0\;[ProgramFilesX86]\Microsoft F#\v4.0\;[ProgramFiles]\FSharp-2.0.0.0\bin\;[ProgramFilesX86]\FSharp-2.0.0.0\bin\;[ProgramFiles]\FSharp-1.9.9.9\bin\;[ProgramFilesX86]\FSharp-1.9.9.9\bin\" />
- <add key="GitPath" value="[ProgramFilesX86]\Git\bin\;[ProgramFiles]\Git\bin\" />
- </appSettings>
-</configuration>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit eecd157

Please sign in to comment.