Skip to content

Commit

Permalink
Merge branch 'release/1.7.1' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynvs committed Jul 6, 2016
2 parents cc06c8f + 697cbd2 commit 97aa150
Show file tree
Hide file tree
Showing 43 changed files with 2,187 additions and 413 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,4 @@ docs/html/
packages
paket.exe
paket.lock
paket.bootstrapper.exe
41 changes: 41 additions & 0 deletions .paket/paket.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Enable the restore command to run before builds -->
<RestorePackages Condition=" '$(RestorePackages)' == '' ">true</RestorePackages>
<!-- Download Paket.exe if it does not already exist -->
<DownloadPaket Condition=" '$(DownloadPaket)' == '' ">true</DownloadPaket>
<PaketToolsPath>$(MSBuildThisFileDirectory)</PaketToolsPath>
<PaketRootPath>$(MSBuildThisFileDirectory)..\</PaketRootPath>
<MonoPath Condition="'$(MonoPath)' == '' And Exists('/Library/Frameworks/Mono.framework/Commands/mono')">/Library/Frameworks/Mono.framework/Commands/mono</MonoPath>
<MonoPath Condition="'$(MonoPath)' == ''">mono</MonoPath>
</PropertyGroup>
<PropertyGroup>
<!-- Paket command -->
<PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath>
<PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' ">$(PaketToolsPath)paket.bootstrapper.exe</PaketBootStrapperExePath>
<PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand>
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand>
<PaketBootStrapperCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketBootStrapperExePath)" $(PaketBootStrapperCommandArgs)</PaketBootStrapperCommand>
<PaketBootStrapperCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 $(PaketBootStrapperExePath) $(PaketBootStrapperCommandArgs)</PaketBootStrapperCommand>
<!-- Commands -->
<PaketReferences Condition="!Exists('$(MSBuildProjectFullPath).paket.references')">$(MSBuildProjectDirectory)\paket.references</PaketReferences>
<PaketReferences Condition="!Exists('$(PaketReferences)')">$(MSBuildStartupDirectory)\paket.references</PaketReferences>
<PaketReferences Condition="Exists('$(MSBuildProjectFullPath).paket.references')">$(MSBuildProjectFullPath).paket.references</PaketReferences>
<RestoreCommand>$(PaketCommand) restore --references-files "$(PaketReferences)"</RestoreCommand>
<DownloadPaketCommand>$(PaketBootStrapperCommand)</DownloadPaketCommand>
<!-- We need to ensure packages are restored prior to assembly resolve -->
<BuildDependsOn Condition="$(RestorePackages) == 'true'">RestorePackages; $(BuildDependsOn);</BuildDependsOn>
</PropertyGroup>
<Target Name="CheckPrerequisites">
<!-- Raise an error if we're unable to locate paket.exe -->
<Error Condition="'$(DownloadPaket)' != 'true' AND !Exists('$(PaketExePath)')" Text="Unable to locate '$(PaketExePath)'" />
<MsBuild Targets="DownloadPaket" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT;DownloadPaket=$(DownloadPaket)" />
</Target>
<Target Name="DownloadPaket">
<Exec Command="$(DownloadPaketCommand)" IgnoreStandardErrorWarningFormat="true" Condition=" '$(DownloadPaket)' == 'true' AND !Exists('$(PaketExePath)')" />
</Target>
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(RestoreCommand)" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(PaketRootPath)" Condition="Exists('$(PaketReferences)')" ContinueOnError="true" />
</Target>
</Project>
17 changes: 0 additions & 17 deletions NuGet.config

This file was deleted.

32 changes: 18 additions & 14 deletions build/build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
<Version Condition=" '$(bamboo_GitVersion_NuGetVersion)' != '' ">$(bamboo_GitVersion_NuGetVersion)</Version>
<Version Condition=" '$(bamboo_GitVersion_NuGetVersion)' == '' ">0.0.0-dev</Version>

<ILMerge>$(MSBuildThisFileDirectory.Replace('build\','src'))\packages\ILMerge.2.14.1208\tools\ILMerge.exe</ILMerge>
<NuGet>$(LocalAppData)\NuGet\NuGet.exe</NuGet>
<PaketVersion>3.4.0</PaketVersion>
<PaketBootstrapper>$(MSBuildThisFileDirectory.Replace('build\','.paket'))\paket.bootstrapper.exe</PaketBootstrapper>
<Paket>$(MSBuildThisFileDirectory.Replace('build\','.paket'))\paket.exe</Paket>
<PackagesFolder>$(MSBuildThisFileDirectory.Replace('build\','packages'))</PackagesFolder>
<NuGet>$(PackagesFolder)\NuGet.CommandLine\tools\NuGet.exe</NuGet>
<MSBuild>&quot;$(MSBuildToolsPath)\MSBuild.exe&quot;</MSBuild>
<XUnit>$(MSBuildThisFileDirectory.Replace('build\','src'))\packages\xunit.runner.console.2.0.0\tools\xunit.console.exe</XUnit>
<XUnitXslt>$(MSBuildThisFileDirectory.Replace('build\','src'))\packages\xunit.runner.console.2.0.0\tools\NUnitXml.xslt</XUnitXslt>
<XUnit>$(PackagesFolder)\xunit.runner.console\tools\xunit.console.exe</XUnit>
<XUnitXslt>$(PackagesFolder)\xunit.runner.console\tools\NUnitXml.xslt</XUnitXslt>
<ILMerge>$(PackagesFolder)\ILMerge\tools\ILMerge.exe</ILMerge>
</PropertyGroup>

<Target Name="CI">
Expand All @@ -33,20 +37,20 @@

<Target Name="Documentation" DependsOnTargets="Build">
<PropertyGroup>
<SHFBROOT>$(MSBuildThisFileDirectory.Replace('build\','src'))\packages\EWSoftware.SHFB.2014.11.22-beta\tools</SHFBROOT>
<SHFBROOT>$(PackagesFolder)\EWSoftware.SHFB\tools</SHFBROOT>
</PropertyGroup>

<Exec Command="$(NuGet) restore ..\src\Documentation\Documentation.sln" />
<Exec Command="(set SHFBROOT=$(SHFBROOT)) &amp; $(MSBuild) ..\src\Documentation\Documentation.sln /p:Configuration=$(Configuration) /nologo /v:minimal" />
</Target>

<Target Name="RestorePackages" DependsOnTargets="DownloadNuGet">
<Exec Command="$(NuGet) restore ..\src\openstack.net.sln" />
<Target Name="RestorePackages" DependsOnTargets="DownloadPaket">
<Exec Command="$(PaketBootstrapper)" />
<Exec Command="$(Paket) install" />
</Target>

<Target Name="DownloadNuGet" Condition="!Exists('$(NuGet)')">
<MakeDir Directories="$(LocalAppData)\NuGet" />
<Exec Command="@powershell -NoProfile -ExecutionPolicy unrestricted -Command &quot;$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '$(NuGet)'&quot;" />
<Target Name="DownloadPaket" Condition="!Exists('$(PaketBootstrapper)')">
<Exec Command="@powershell -NoProfile -ExecutionPolicy unrestricted -Command &quot;$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://github.com/fsprojects/Paket/releases/download/$(PaketVersion)/paket.bootstrapper.exe' -OutFile '$(PaketBootstrapper)'&quot;" />
<Exec Command="..\.paket\paket.bootstrapper.exe $(PaketVersion)" />
</Target>

<Target Name="UnitTest" DependsOnTargets="Build">
Expand All @@ -70,7 +74,7 @@
OutputPaths="..\artifacts\TestResults\integration-tests.nunit.xml" />
</Target>

<Target Name="MigrationTest" DependsOnTargets="DownloadNuGet">
<Target Name="MigrationTest" DependsOnTargets="RestorePackages">
<PropertyGroup>
<MigrationSln>..\src\testing\migration\migration.sln</MigrationSln>
</PropertyGroup>
Expand Down Expand Up @@ -101,7 +105,7 @@

<!-- The publish targets don't depend upon Package because of how they are used on the CI server. At this point the code has been packaged and all that needs
to happen is to publish the artifact. -->
<Target Name="PublishNuGet" DependsOnTargets="DownloadNuGet">
<Target Name="PublishNuGet">
<Exec Command="@powershell -NoProfile -ExecutionPolicy unrestricted -File check-nuget-version-exists.ps1 $(Version)" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="ShouldPublishToNuGet" />
</Exec>
Expand All @@ -113,7 +117,7 @@
Condition=" '$(ShouldPublishToNuGet)' == 'True' " />
</Target>

<Target Name="PublishMyGet" DependsOnTargets="DownloadNuGet">
<Target Name="PublishMyGet">
<!-- We don't need to check for existing versions because MyGet lets you overwrite -->
<!-- The environment variable BAMBOO_MYGET_PASSWORD comes from the nuget.password variable defined on the openstack.net plan in Bamboo -->
<Exec Command="$(NuGet) push ..\artifacts\packages\openstack.net.$(Version).nupkg %25BAMBOO_MYGET_PASSWORD%25 -Source https://www.myget.org/F/openstacknetsdk/api/v2"/>
Expand Down
48 changes: 48 additions & 0 deletions paket.dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
source https://www.myget.org/F/openstacknetsdk/api/v2
source https://www.nuget.org/api/v2
redirects: on

nuget EWSoftware.SHFB = 2014.11.22-beta
nuget Flurl.Http.Signed ~> 0.7.0
nuget Flurl.Signed ~> 1.0
nuget ILMerge
nuget Marvin.JsonPatch.Signed ~> 0.7.0
nuget Moq
nuget Newtonsoft.Json ~> 6.0
nuget NuGet.CommandLine
nuget SharpZipLib
nuget SimpleRESTServices = 1.3.0.1
nuget xunit
nuget xunit.abstractions
nuget xunit.assert
nuget xunit.core
nuget xunit.extensibility.core
nuget xunit.runner.console
nuget xunit.runner.visualstudio

group History-1.5
redirects: on
source https://www.nuget.org/api/v2
framework: net45
strategy: min

nuget openstack.net = 1.5.0.2
nuget SimpleRESTServices = 1.3.0.1

group History-1.4
redirects: on
source https://www.nuget.org/api/v2
framework: net45
strategy: min

nuget openstack.net = 1.4.0.2
nuget SimpleRESTServices = 1.3.0.1

group History-1.3.6
redirects: on
source https://www.nuget.org/api/v2
framework: net35
strategy: min

nuget openstack.net = 1.3.6.1
nuget SimpleRESTServices = 1.3.0.1
Loading

0 comments on commit 97aa150

Please sign in to comment.