Skip to content

Commit a3328da

Browse files
committed
Use Ciao for continuous integration.
1 parent 5456642 commit a3328da

File tree

10 files changed

+223
-245
lines changed

10 files changed

+223
-245
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,3 @@ bin
88
obj
99
build/
1010
packages/
11-
TestResult.xml
12-
NuGet.exe
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3+
<package id="Ciao" version="1.0.1" />
34
<package id="NUnit.Runners" version="2.6.3" />
45
</packages>

Ciao.proj

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" InitialTargets="Validate" DefaultTargets="Bootstrap" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<!--
4+
The main Ciao point of entry. Continuous Integration builds should invoke
5+
this build script with MSBuild 4.0 or later.
6+
7+
Do not modify this file. To customize your build, modify Ciao.props and Ciao.targets.
8+
-->
9+
<Import Project="Ciao.props" Condition="Exists('Ciao.props')"/>
10+
11+
<PropertyGroup>
12+
<BuildDirectory Condition=" '$(BuildDirectory)' == '' ">$([System.IO.Path]::Combine('$(MSBuildThisFileDirectory)', 'build'))$([System.IO.Path]::DirectorySeparatorChar)</BuildDirectory>
13+
<ToolsDirectory Condition=" '$(ToolsDirectory)' == '' ">$([System.IO.Path]::Combine('$(BuildDirectory)', 'tools'))$([System.IO.Path]::DirectorySeparatorChar)</ToolsDirectory>
14+
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$([System.IO.Path]::Combine('$(ToolsDirectory)', 'NuGet.exe'))</NuGetExePath>
15+
16+
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT' ">"$(NuGetExePath)"</NuGetCommand>
17+
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
18+
<NuGetClientDownloadUrl Condition=" '$(NuGetClientDownloadUrl)' == '' ">https://www.nuget.org/nuget.exe</NuGetClientDownloadUrl>
19+
</PropertyGroup>
20+
21+
<PropertyGroup>
22+
<BootstrapDependsOn>
23+
DownloadNuGetCommandLineClient;
24+
RestoreSolutionPackages;
25+
ResolveCiao;
26+
Build
27+
</BootstrapDependsOn>
28+
</PropertyGroup>
29+
30+
<Target Name="Validate">
31+
<Error Text="$(MSBuildThisFileDirectory)Ciao.props must define the SolutionFile property" Condition=" '$(SolutionFile)' == '' "/>
32+
<Error Text="The Solution $(SolutionFile) does not exist" Condition="!Exists('$(SolutionFile)')"/>
33+
</Target>
34+
35+
<Target Name="Bootstrap" DependsOnTargets="$(BootstrapDependsOn)"/>
36+
37+
<Target Name="RestoreSolutionPackages" DependsOnTargets="DownloadNuGetCommandLineClient">
38+
<Exec Command="$(NuGetCommand) restore &quot;$(SolutionFile)&quot; -NonInteractive -Source http://www.nuget.org/api/v2/"/>
39+
</Target>
40+
41+
<Target Name="ResolveCiao" Condition=" '$(CiaoPackageEntryProject)' == '' ">
42+
<PropertyGroup>
43+
<SolutionDirectory Condition="Exists('$(SolutionFile)')">$([System.IO.Path]::GetDirectoryName($([System.IO.Path]::GetFullPath('$(SolutionFile)'))))$([System.IO.Path]::DirectorySeparatorChar)</SolutionDirectory>
44+
<SolutionPackageDirectory Condition="Exists('$(SolutionDirectory)')">$([System.IO.Path]::Combine('$(SolutionDirectory)', 'packages'))$([System.IO.Path]::DirectorySeparatorChar)</SolutionPackageDirectory>
45+
</PropertyGroup>
46+
<ItemGroup>
47+
<CiaoPackageEntryProject Include="$(SolutionPackageDirectory)Ciao.*\tools\Ciao.proj"/>
48+
</ItemGroup>
49+
<CreateProperty Value="%(CiaoPackageEntryProject.Identity)">
50+
<Output TaskParameter="Value" PropertyName="CiaoPackageEntryProject"/>
51+
</CreateProperty>
52+
<Error Text="Unable to locate Caio package in Solution packages directory $(SolutionPackageDirectory) (is Ciao installed in the Solution?)" Condition="!Exists($(CiaoPackageEntryProject))"/>
53+
</Target>
54+
55+
<Target Name="Build">
56+
<MSBuild Projects="$(CiaoPackageEntryProject)" Targets="$(CiaoTargets)" Properties="ProjectDirectory=$(MSBuildThisFileDirectory)"/>
57+
</Target>
58+
59+
<Target Name="DownloadNuGetCommandLineClient" Condition="!Exists('$(NuGetExePath)')">
60+
<MakeDir Directories="$(ToolsDirectory)"/>
61+
<Message Text="Downloading $(NuGetClientDownloadUrl) to $(NuGetExePath)"/>
62+
<DownloadNuGet OutputFilename="$(NuGetExePath)" Url="$(NuGetClientDownloadUrl)" Condition=" '$(OS)' == 'Windows_NT' "/>
63+
<Exec Command="curl -L -o &quot;$(NuGetExePath)&quot; $(NuGetClientDownloadUrl)" Condition=" '$(OS)' != 'Windows_NT' "/>
64+
</Target>
65+
66+
<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
67+
<ParameterGroup>
68+
<Url ParameterType="System.String" Required="true" />
69+
<OutputFilename ParameterType="System.String" Required="true" />
70+
</ParameterGroup>
71+
<Task>
72+
<Reference Include="System.Core" />
73+
<Using Namespace="System" />
74+
<Using Namespace="System.IO" />
75+
<Using Namespace="System.Net" />
76+
<Using Namespace="Microsoft.Build.Framework" />
77+
<Using Namespace="Microsoft.Build.Utilities" />
78+
<Code Type="Fragment" Language="cs">
79+
<![CDATA[
80+
try {
81+
OutputFilename = Path.GetFullPath(OutputFilename);
82+
83+
WebClient webClient = new WebClient();
84+
webClient.DownloadFile(Url, OutputFilename);
85+
86+
return true;
87+
}
88+
catch (Exception ex) {
89+
Log.LogErrorFromException(ex);
90+
return false;
91+
}
92+
]]>
93+
</Code>
94+
</Task>
95+
</UsingTask>
96+
</Project>

Ciao.props

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Bootstrap" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup Label="Version">
4+
<VersionPrefix>3.3.0</VersionPrefix>
5+
<VersionSuffix></VersionSuffix>
6+
</PropertyGroup>
7+
8+
<PropertyGroup Label="Settings">
9+
<SolutionFile>Lucene.Net.Linq.sln</SolutionFile>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<NuGetPackConfiguration Include="Prerelease">
14+
<Version>$(PackageVersionWithBuildNumber)</Version>
15+
<Properties>Configuration=Debug;PackageVersion=$(PackageVersionWithBuildNumber)</Properties>
16+
</NuGetPackConfiguration>
17+
<NuGetPackConfiguration Include="Release">
18+
<Version>$(PackageVersion)</Version>
19+
<Properties>Configuration=Release;PackageVersion=$(PackageVersion)</Properties>
20+
</NuGetPackConfiguration>
21+
</ItemGroup>
22+
23+
<PropertyGroup Label="FeatureFlags">
24+
<GenerateVersionInfoEnabled>true</GenerateVersionInfoEnabled>
25+
<NUnitEnabled>true</NUnitEnabled>
26+
<NuGetPackEnabled>true</NuGetPackEnabled>
27+
</PropertyGroup>
28+
</Project>

IntegratedBuild.proj

Lines changed: 0 additions & 99 deletions
This file was deleted.
Lines changed: 76 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,76 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.30324.0
5-
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lucene.Net.Linq", "Lucene.Net.Linq\Lucene.Net.Linq.csproj", "{77AD18CC-93A3-4BC9-9F31-2C16D873F088}"
7-
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lucene.Net.Linq.Tests", "Lucene.Net.Linq.Tests\Lucene.Net.Linq.Tests.csproj", "{40D157FA-178B-4906-9179-E5D623F5BA03}"
9-
EndProject
10-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Files", "Files", "{91DBBF52-CD3F-4737-91DC-CDB7564C32B9}"
11-
ProjectSection(SolutionItems) = preProject
12-
..\IntegratedBuild.proj = ..\IntegratedBuild.proj
13-
..\LICENSE.txt = ..\LICENSE.txt
14-
..\README.markdown = ..\README.markdown
15-
EndProjectSection
16-
EndProject
17-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{95CA6EE1-3FC1-466E-821F-E48BE7DCCA6E}"
18-
ProjectSection(SolutionItems) = preProject
19-
.nuget\packages.config = .nuget\packages.config
20-
EndProjectSection
21-
EndProject
22-
Global
23-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
24-
Debug|Any CPU = Debug|Any CPU
25-
Release|Any CPU = Release|Any CPU
26-
EndGlobalSection
27-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
28-
{77AD18CC-93A3-4BC9-9F31-2C16D873F088}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29-
{77AD18CC-93A3-4BC9-9F31-2C16D873F088}.Debug|Any CPU.Build.0 = Debug|Any CPU
30-
{77AD18CC-93A3-4BC9-9F31-2C16D873F088}.Release|Any CPU.ActiveCfg = Release|Any CPU
31-
{77AD18CC-93A3-4BC9-9F31-2C16D873F088}.Release|Any CPU.Build.0 = Release|Any CPU
32-
{40D157FA-178B-4906-9179-E5D623F5BA03}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33-
{40D157FA-178B-4906-9179-E5D623F5BA03}.Debug|Any CPU.Build.0 = Debug|Any CPU
34-
{40D157FA-178B-4906-9179-E5D623F5BA03}.Release|Any CPU.ActiveCfg = Release|Any CPU
35-
EndGlobalSection
36-
GlobalSection(SolutionProperties) = preSolution
37-
HideSolutionNode = FALSE
38-
EndGlobalSection
39-
GlobalSection(MonoDevelopProperties) = preSolution
40-
StartupItem = Lucene.Net.Linq\Lucene.Net.Linq.csproj
41-
Policies = $0
42-
$0.DotNetNamingPolicy = $1
43-
$1.DirectoryNamespaceAssociation = None
44-
$1.ResourceNamePolicy = FileFormatDefault
45-
$0.TextStylePolicy = $2
46-
$2.NoTabsAfterNonTabs = True
47-
$2.EolMarker = Windows
48-
$2.inheritsSet = VisualStudio
49-
$2.inheritsScope = text/plain
50-
$2.scope = text/x-csharp
51-
$0.CSharpFormattingPolicy = $3
52-
$3.IndentSwitchBody = True
53-
$3.AnonymousMethodBraceStyle = NextLine
54-
$3.PropertyBraceStyle = NextLine
55-
$3.PropertyGetBraceStyle = NextLine
56-
$3.PropertySetBraceStyle = NextLine
57-
$3.EventBraceStyle = NextLine
58-
$3.EventAddBraceStyle = NextLine
59-
$3.EventRemoveBraceStyle = NextLine
60-
$3.StatementBraceStyle = NextLine
61-
$3.ArrayInitializerBraceStyle = NextLine
62-
$3.BeforeMethodDeclarationParentheses = False
63-
$3.BeforeMethodCallParentheses = False
64-
$3.BeforeConstructorDeclarationParentheses = False
65-
$3.BeforeDelegateDeclarationParentheses = False
66-
$3.NewParentheses = False
67-
$3.inheritsSet = Mono
68-
$3.inheritsScope = text/x-csharp
69-
$3.scope = text/x-csharp
70-
EndGlobalSection
71-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.30324.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lucene.Net.Linq", "source\Lucene.Net.Linq\Lucene.Net.Linq.csproj", "{77AD18CC-93A3-4BC9-9F31-2C16D873F088}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lucene.Net.Linq.Tests", "source\Lucene.Net.Linq.Tests\Lucene.Net.Linq.Tests.csproj", "{40D157FA-178B-4906-9179-E5D623F5BA03}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Files", "Files", "{91DBBF52-CD3F-4737-91DC-CDB7564C32B9}"
11+
ProjectSection(SolutionItems) = preProject
12+
..\LICENSE.txt = ..\LICENSE.txt
13+
..\README.markdown = ..\README.markdown
14+
EndProjectSection
15+
EndProject
16+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{95CA6EE1-3FC1-466E-821F-E48BE7DCCA6E}"
17+
ProjectSection(SolutionItems) = preProject
18+
.nuget\packages.config = .nuget\packages.config
19+
EndProjectSection
20+
EndProject
21+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Ciao", "Ciao", "{78E2D7F3-D76C-42CD-BB5F-F978916D8F03}"
22+
ProjectSection(SolutionItems) = preProject
23+
Ciao.proj = Ciao.proj
24+
Ciao.props = Ciao.props
25+
EndProjectSection
26+
EndProject
27+
Global
28+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
29+
Debug|Any CPU = Debug|Any CPU
30+
Release|Any CPU = Release|Any CPU
31+
EndGlobalSection
32+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
33+
{77AD18CC-93A3-4BC9-9F31-2C16D873F088}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{77AD18CC-93A3-4BC9-9F31-2C16D873F088}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{77AD18CC-93A3-4BC9-9F31-2C16D873F088}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{77AD18CC-93A3-4BC9-9F31-2C16D873F088}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{40D157FA-178B-4906-9179-E5D623F5BA03}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{40D157FA-178B-4906-9179-E5D623F5BA03}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{40D157FA-178B-4906-9179-E5D623F5BA03}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
EndGlobalSection
41+
GlobalSection(SolutionProperties) = preSolution
42+
HideSolutionNode = FALSE
43+
EndGlobalSection
44+
GlobalSection(MonoDevelopProperties) = preSolution
45+
StartupItem = Lucene.Net.Linq\Lucene.Net.Linq.csproj
46+
Policies = $0
47+
$0.DotNetNamingPolicy = $1
48+
$1.DirectoryNamespaceAssociation = None
49+
$1.ResourceNamePolicy = FileFormatDefault
50+
$0.TextStylePolicy = $2
51+
$2.NoTabsAfterNonTabs = True
52+
$2.EolMarker = Windows
53+
$2.inheritsSet = VisualStudio
54+
$2.inheritsScope = text/plain
55+
$2.scope = text/x-csharp
56+
$0.CSharpFormattingPolicy = $3
57+
$3.IndentSwitchBody = True
58+
$3.AnonymousMethodBraceStyle = NextLine
59+
$3.PropertyBraceStyle = NextLine
60+
$3.PropertyGetBraceStyle = NextLine
61+
$3.PropertySetBraceStyle = NextLine
62+
$3.EventBraceStyle = NextLine
63+
$3.EventAddBraceStyle = NextLine
64+
$3.EventRemoveBraceStyle = NextLine
65+
$3.StatementBraceStyle = NextLine
66+
$3.ArrayInitializerBraceStyle = NextLine
67+
$3.BeforeMethodDeclarationParentheses = False
68+
$3.BeforeMethodCallParentheses = False
69+
$3.BeforeConstructorDeclarationParentheses = False
70+
$3.BeforeDelegateDeclarationParentheses = False
71+
$3.NewParentheses = False
72+
$3.inheritsSet = Mono
73+
$3.inheritsScope = text/x-csharp
74+
$3.scope = text/x-csharp
75+
EndGlobalSection
76+
EndGlobal

NuGet.exe

1.59 MB
Binary file not shown.

0 commit comments

Comments
 (0)