Skip to content

Commit f602857

Browse files
author
Jake Ginnivan
committed
Merge pull request #2 from JakeGinnivan/LotsaUpdates
Lotsa updates
2 parents 062d49c + 8f4a083 commit f602857

File tree

161 files changed

+18327
-20324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+18327
-20324
lines changed

.gitignore

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
2+
[Bb]in/
3+
[Oo]bj/
4+
5+
# mstest test results
6+
TestResults
7+
8+
## Ignore Visual Studio temporary files, build results, and
9+
## files generated by popular Visual Studio add-ons.
10+
11+
# User-specific files
12+
*.suo
13+
*.user
14+
*.sln.docstates
15+
16+
# Build results
17+
[Dd]ebug/
18+
[Rr]elease/
19+
x64/
20+
*_i.c
21+
*_p.c
22+
*.ilk
23+
*.meta
24+
*.obj
25+
*.pch
26+
*.pdb
27+
*.pgc
28+
*.pgd
29+
*.rsp
30+
*.sbr
31+
*.tlb
32+
*.tli
33+
*.tlh
34+
*.tmp
35+
*.vspscc
36+
*.vssscc
37+
.builds
38+
39+
# Visual C++ cache files
40+
ipch/
41+
*.aps
42+
*.ncb
43+
*.opensdf
44+
*.sdf
45+
46+
# Visual Studio profiler
47+
*.psess
48+
*.vsp
49+
50+
# Guidance Automation Toolkit
51+
*.gpState
52+
53+
# ReSharper is a .NET coding add-in
54+
_ReSharper*
55+
56+
# NCrunch
57+
.*crunch*.local.xml
58+
59+
# Installshield output folder
60+
[Ee]xpress
61+
62+
# DocProject is a documentation generator add-in
63+
DocProject/buildhelp/
64+
DocProject/Help/*.HxT
65+
DocProject/Help/*.HxC
66+
DocProject/Help/*.hhc
67+
DocProject/Help/*.hhk
68+
DocProject/Help/*.hhp
69+
DocProject/Help/Html2
70+
DocProject/Help/html
71+
72+
# Click-Once directory
73+
publish
74+
75+
# Publish Web Output
76+
*.Publish.xml
77+
78+
# Others
79+
[Bb]in
80+
[Oo]bj
81+
sql
82+
TestResults
83+
[Tt]est[Rr]esult*
84+
*.Cache
85+
ClientBin
86+
[Ss]tyle[Cc]op.*
87+
~$*
88+
*.dbmdl
89+
*.orig
90+
Generated_Code #added for RIA/Silverlight projects
91+
92+
# Backup & report files from converting an old project file to a newer
93+
# Visual Studio version. Backup files are not needed, because we have git ;-)
94+
_UpgradeReport_Files/
95+
Backup*/
96+
UpgradeLog*.XML
97+
98+
# NuGet temporary packages folder
99+
packages
100+
101+
# any logs
102+
*.log
103+
104+
# our output folder for build artifacts
105+
artifacts
106+
107+
src/_NCrunch_FunnelWeb
108+
GitRepoConfig.xml
109+
build/NuGet/*
110+
build/Published/*
111+
Views\Extensions\*

Deploy_To_Git.ps1

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
param([switch]$InitialDeploy)
1+
param([switch]$init, [switch]$updateConfig, [switch]$dontBuild)
22

33
$ErrorActionPreference = "Stop";
44

@@ -10,6 +10,11 @@ function Get-ScriptDirectory
1010

1111
$root = Get-ScriptDirectory
1212

13+
if ($dontBuild -ne $true)
14+
{
15+
& $root\build.bat NOPAUSE
16+
}
17+
1318
#Get Configuration File
1419
if (!(Test-Path $root\GitRepoConfig.xml))
1520
{
@@ -55,9 +60,11 @@ if (!(Test-Path "$deployTempDir"))
5560
{
5661
[System.IO.Directory]::CreateDirectory("$deployTempDir")
5762
}
63+
64+
write-host "Temporary directory is $deployTempDir"
5865
pushd "$deployTempDir"
5966

60-
if ($InitialDeploy -eq $false)
67+
if ($init -eq $false)
6168
{
6269
& $git clone $repo .
6370
& $git checkout
@@ -70,7 +77,7 @@ else
7077
# copy new stuff over
7178
copy "$root\build\published\*" "$deployTempDir" -recurse -force
7279

73-
if (!(Test-Path "$deployTempDir\my.config"))
80+
if ($updateConfig -eq $false -and !(Test-Path "$deployTempDir\my.config"))
7481
{
7582
$myConfig = New-Object XML
7683
$myConfig.Load("$deployTempDir\my.config.sample")
@@ -90,6 +97,12 @@ if (!(Test-Path "$deployTempDir\my.config"))
9097
$myConfig.Save("$deployTempDir\my.config")
9198
}
9299

100+
if ($updateConfig -eq $true)
101+
{
102+
write-host "Opening my.config for editing before deployment"
103+
& notepad $deployTempDir\my.config | Out-Null
104+
}
105+
93106
### Compatibility Steps
94107
#Remove Obsolete Extensions
95108

build.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ set framework=v4.0.30319
55

66
"%SystemDrive%\Windows\Microsoft.NET\Framework\%framework%\MSBuild.exe" build\Build.proj /t:Build /p:build_number=%appversion% /v:m
77
echo Done
8+
9+
if (%1)==(NOPAUSE) goto :eof
810
pause

build/build.proj

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="lib\MSBuild.Community.Tasks.Targets" />
44
<Import Project="lib\MSBuild.Deployment.Tasks.Targets" />
5-
<Import Project="lib\MSBuild.Mercurial.tasks"/>
65

76
<PropertyGroup>
87
<Root>$(MSBuildStartupDirectory)</Root>
@@ -18,9 +17,7 @@
1817
</PropertyGroup>
1918

2019
<Target Name="Version">
21-
<HgVersion LocalPath=".">
22-
<Output TaskParameter="Revision" PropertyName="Revision" />
23-
</HgVersion>
20+
2421
</Target>
2522

2623
<Target Name="Build" DependsOnTargets="Version">
@@ -96,10 +93,7 @@
9693
<MSBuild Projects="$(Root)\src\FunnelWeb.Web\FunnelWeb.Web.csproj"
9794
Targets="ResolveReferences;_CopyWebApplication;_CopyBinDeployableAssemblies"
9895
Properties="Configuration=Release;WebProjectOutputDir=$(Root)\build\Published\;OutDir=$(Root)\build\Published\bin\" />
99-
100-
<MSBuild Projects="$(Root)\src\FunnelWeb.Azure\FunnelWeb.Azure.ccproj"
101-
Targets="Publish"
102-
Properties="Configuration=Release;PublishDir=$(Root)\build\Artifacts\" />
96+
10397
<!-- Also copy extensions -->
10498
<ItemGroup>
10599
<ExtensionsToPublish Include="$(Root)\src\FunnelWeb.Web\bin\Extensions\*.dll" />

src/FunnelWeb.Azure/FunnelWeb.Azure.ccproj

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/FunnelWeb.Azure/ServiceConfiguration.Cloud.cscfg

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/FunnelWeb.Azure/ServiceConfiguration.Local.cscfg

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/FunnelWeb.Azure/ServiceDefinition.build.csdef

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/FunnelWeb.Azure/ServiceDefinition.csdef

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/FunnelWeb.Tests/DatabaseDeployer/DatabaseUpgradeDetectorTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private void CurrentSchemaVersionIs(int version)
111111
private void RequiredApplicationVersionIs(int version)
112112
{
113113
applicationDatabase
114-
.GetCoreRequiredScripts()
114+
.GetCoreRequiredScripts(Arg.Any<Func<IDbConnection>>())
115115
.Returns(Enumerable.Range(1, version).Select(x => "Script" + x + ".sql").ToArray());
116116
}
117117

@@ -125,7 +125,7 @@ private void CurrentExtensionVersionIs(int version)
125125
private void RequiredExtensionVersionIs(int version)
126126
{
127127
applicationDatabase
128-
.GetExtensionRequiredScripts(Arg.Any<ScriptedExtension>())
128+
.GetExtensionRequiredScripts(Arg.Any<Func<IDbConnection>>(), Arg.Any<ScriptedExtension>())
129129
.Returns(Enumerable.Range(1, version).Select(x => "Script" + x + ".sql").ToArray());
130130
}
131131

0 commit comments

Comments
 (0)