Permalink
Browse files

Added a DifferenceWithFluentNHibernate to internalize most of the tas…

…ks of refresh database. Re-ILMerging the dll. Fixed refreshdatabase package so that it works. The migrator now logs the same as the console and msbuild task.
  • Loading branch information...
ferventcoder committed Jun 6, 2011
1 parent c37acb4 commit a6820d18d213e1f8c2009a2897fc1794163d2ba6
View
@@ -1,24 +1,23 @@
.svn
build_output
code_drop
bin
obj
_ReSharper*
*.suo
*.user
*.csproj.user
*.resharper.user
*.resharper
*.ReSharper.user
*.cache
*~
*.swp
*.bak
*.orig
*.log
TestResult.xml
submit.xml
SolutionVersion.cs
.svn
build_output
code_drop
bin
obj
_ReSharper*
*.suo
*.user
*.csproj.user
*.resharper.user
*.ReSharper.user
*.cache
*~
*.swp
*.bak
*.orig
*.log
TestResult.xml
submit.xml
SolutionVersion.cs
SolutionVersion.vb
View
@@ -0,0 +1,39 @@
@echo off
::Project UppercuT - http://uppercut.googlecode.com
if '%2' NEQ '' goto usage
if '%3' NEQ '' goto usage
if '%1' == '/?' goto usage
if '%1' == '-?' goto usage
if '%1' == '?' goto usage
if '%1' == '/help' goto usage
SET APP_BDDDOC="..\lib\bdddoc\bdddoc.console.exe"
SET TEST_ASSEMBLY_NAME="roundhouse.tests.dll"
SET DIR=%~d0%~p0%
SET build.config.settings="%DIR%Settings\UppercuT.config"
"%DIR%lib\Nant\nant.exe" /f:.\build\compile.step -D:build.config.settings=%build.config.settings%
if %ERRORLEVEL% NEQ 0 goto errors
"%DIR%lib\Nant\nant.exe" /f:.\build\analyzers\test.step %1 -D:build.config.settings=%build.config.settings%
"%DIR%lib\Nant\nant.exe" /f:.\build.custom\bdddoc.build -D:build.config.settings=%build.config.settings% -D:app.bdddoc=%APP_BDDDOC% -D:test_assembly=%TEST_ASSEMBLY_NAME%
"%DIR%lib\Nant\nant.exe" /f:.\build.custom\bdddoc.build open_results
if %ERRORLEVEL% NEQ 0 goto errors
goto finish
:usage
echo.
echo Usage: bdddoc.bat
echo.
goto finish
:errors
EXIT /B %ERRORLEVEL%
:finish
View
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8" ?>
<project name="BDDRunner" default="go">
<!-- Project UppercuT - http://projectuppercut.org -->
<!-- This is a sample for running BDDDoc -->
<property name="build.config.settings" value="__NONE__" overwrite="false" />
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
<property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" overwrite="false" />
<property name="dirs.lib" value="${dirs.current}\..\lib" overwrite="false" />
<property name="dirs.build" value="${dirs.current}\..\build_output" overwrite="false" />
<property name="dirs.build_artifacts" value="${path::get-full-path(dirs.build)}\build_artifacts" overwrite="false" />
<property name="dirs.test_results" value="${dirs.build_artifacts}\mbunit2" overwrite="false" />
<property name="file.test_results" value="mbunit-results" overwrite="false" />
<property name="dirs.bdddoc_results" value="${dirs.build_artifacts}\bdddoc" overwrite="false" />
<property name="files.bdddoc_results" value="${dirs.bdddoc_results}\bdddoc-results.html" overwrite="false" />
<property name="app.bdddoc" value="${path::get-full-path(dirs.lib)}\bdddoc\bdddoc.console.exe" overwrite="false" />
<property name="test_attribute" value="ObservationAttribute" overwrite="false" />
<property name="test_assembly" value="__TEST_ASSEMBLY__" overwrite="false" />
<property name="folder.app.drop" value="app" overwrite="false" />
<target name="go" depends="cleanup, run_bdddoc" description="Tests" />
<target name="cleanup">
<echo message="Removing and adding ${dirs.bdddoc_results}."/>
<delete dir="${dirs.bdddoc_results}" />
<mkdir dir="${dirs.bdddoc_results}" />
</target>
<target name="run_bdddoc" depends="cleanup" description="Running BDDDoc">
<echo message="Running BDDDoc against ${dirs.build}\${folder.app.drop}\${test_assembly} ${test_attribute} ${files.bdddoc_results} ${dirs.test_results}\${file.test_results}.xml."/>
<exec program="${app.bdddoc}" >
<arg file="${dirs.build}\${folder.app.drop}\${test_assembly}"/>
<arg value="${test_attribute}"/>
<arg file="${files.bdddoc_results}"/>
<arg file="${dirs.test_results}\${file.test_results}.xml"/>
</exec>
</target>
<target name="open_results">
<echo message="Opening results at ${path::get-full-path(files.bdddoc_results)}."/>
<exec
spawn="true"
program="${environment::get-folder-path('ProgramFiles')}\Internet Explorer\iexplore.exe"
commandline="${path::get-full-path(files.bdddoc_results)}"
>
</exec>
</target>
</project>
@@ -52,10 +52,11 @@
<items>
<exclude name="${dirs.merge.from}\${file.merge.name}" />
<exclude name="${dirs.merge.from}\log4net.dll" />
<include name="${dirs.merge.from}\roundhouse*.dll" />
<include name="${dirs.merge.from}\*.exe" />
<include name="${dirs.merge.from}\*.dll" />
<!--include name="${dirs.merge.from}\roundhouse*.dll" />
<include name="${dirs.merge.from}\NHibernate.JetDriver.dll" />
<include name="${dirs.merge.from}\StructureMap.dll" />
<include name="${dirs.merge.from}\StructureMap.dll" /-->
</items>
</in>
<do>
@@ -87,12 +88,13 @@
<echo message="Removing unneeded assemblies before moving the merged assembly back into ${dirs.merge.from}."/>
<delete>
<fileset basedir="${dirs.merge.from}" >
<exclude name="log4net*" />
<include name="roundhouse*" />
<exclude name="log4net.dll" />
<include name="*.*" />
<!--include name="roundhouse*" />
<include name="*.exe" />
<include name="NHibernate.JetDriver.dll" />
<include name="StructureMap.dll" />
<include name="Microsoft.Build.Framework.*" />
<include name="Microsoft.Build.Framework.*" /-->
</fileset>
</delete>
</target>
@@ -87,7 +87,7 @@
<echo message="Removing unneeded assemblies before moving the merged assembly back into ${dirs.merge.from}."/>
<delete>
<fileset basedir="${dirs.merge.from}" >
<exclude name="log4net*" />
<exclude name="log4net.dll" />
<exclude name="Microsoft.Build.Framework.dll" />
<exclude name="roundhouse.tasks.dll" />
<exclude name="*.proj" />
@@ -15,7 +15,7 @@
<iconUrl>http://roundhouse.googlecode.com/svn/trunk/nuget/RoundhousE_Logo.NuGet.jpg</iconUrl>
<dependencies>
<dependency id="log4net" version="1.2.10" />
<dependency id="FluentNHibernate" version="1.2.0.712" />
<!--dependency id="FluentNHibernate" version="1.2.0.712" /-->
</dependencies>
</metadata>
</package>

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit a6820d1

Please sign in to comment.