This repository has been archived by the owner on Nov 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New deploy scripts, use .htm extension for license and release notes
- Loading branch information
1 parent
c223681
commit 4df0ebf
Showing
17 changed files
with
324 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<!-- Defaults --> | ||
<PropertyGroup> | ||
<EnableAfterBuild Condition=" '$(EnableAfterBuild)' == '' ">true</EnableAfterBuild> | ||
</PropertyGroup> | ||
<!-- Configuration-specific defaults --> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | ||
<EnableInstallPackage Condition=" '$(EnableInstallPackage)' == '' ">false</EnableInstallPackage> | ||
<EnableTests Condition=" '$(EnableTests)' == '' ">false</EnableTests> | ||
<EnableLocalDeploy Condition=" '$(EnableLocalDeploy)' == '' ">true</EnableLocalDeploy> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' And '$(TRAVIS_SOLUTION)' == '' "> | ||
<EnableInstallPackage Condition=" '$(EnableInstallPackage)' == '' ">true</EnableInstallPackage> | ||
<EnableTests Condition=" '$(EnableTests)' == '' ">true</EnableTests> | ||
<EnableLocalDeploy Condition=" '$(EnableLocalDeploy)' == '' ">false</EnableLocalDeploy> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' And '$(TRAVIS_SOLUTION)' != '' "> | ||
<EnableInstallPackage Condition=" '$(EnableInstallPackage)' == '' ">false</EnableInstallPackage> | ||
<EnableTests Condition=" '$(EnableTests)' == '' ">true</EnableTests> | ||
<EnableLocalDeploy Condition=" '$(EnableLocalDeploy)' == '' ">false</EnableLocalDeploy> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
|
||
<!-- Import MSBuild.Community.Tasks --> | ||
<Import Project="../packages/MSBuildTasks.1.5.0.235/tools/MSBuild.Community.Tasks.Targets" /> | ||
|
||
<!-- Main properties --> | ||
<PropertyGroup> | ||
<PackageName>R7.HelpDesk</PackageName> | ||
<PackageOutputPath>bin/Deploy</PackageOutputPath> | ||
<TmpDir>bin/tmp</TmpDir> | ||
<DnnLocalDeployPath Condition=" '$(OS)' == 'Unix' ">$(HOME)/mnt/dnn8</DnnLocalDeployPath> | ||
<DnnLocalDeployPath Condition=" '$(OS)' != 'Unix' ">C:\Dotnetnuke804</DnnLocalDeployPath> | ||
<BuildSettingsImported>true</BuildSettingsImported> | ||
</PropertyGroup> | ||
|
||
<!-- Derieved properties --> | ||
<PropertyGroup> | ||
<MainProjectPath>../$(PackageName)</MainProjectPath> | ||
<MainProjectOutputPath>$(MainProjectPath)/bin/$(Configuration)</MainProjectOutputPath> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>8.0.30703</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{FC30AFB6-AD2D-4CC4-99BB-B22F49147BF1}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<RootNamespace>Deploy</RootNamespace> | ||
<AssemblyName>Deploy</AssemblyName> | ||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
<ReleaseVersion>1.1.0</ReleaseVersion> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug</OutputPath> | ||
<DefineConstants>DEBUG;</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<CustomCommands> | ||
<CustomCommands> | ||
<Command> | ||
<type>Custom</type> | ||
<name>Build Only</name> | ||
<command>xbuild /t:Build /p:Configuration=${ProjectConfigName} /p:EnableAfterBuild=false ../R7.HelpDesk.sln</command> | ||
</Command> | ||
<Command> | ||
<type>Custom</type> | ||
<name>Do Local Deploy</name> | ||
<command>xbuild /t:Build /p:Configuration=${ProjectConfigName} /p:EnableTests=false /p:EnableInstallPackage=false /p:EnableLocalDeploy=true ../R7.HelpDesk.sln</command> | ||
</Command> | ||
<Command> | ||
<type>Custom</type> | ||
<name>Make Install Package</name> | ||
<command>xbuild /t:Build /p:Configuration=${ProjectConfigName} /p:EnableTests=true /p:EnableInstallPackage=true /p:EnableLocalDeploy=false ../R7.HelpDesk.sln</command> | ||
</Command> | ||
<Command> | ||
<type>Custom</type> | ||
<name>Run Tests</name> | ||
<command>xbuild /t:Build /p:Configuration=${ProjectConfigName} /p:EnableTests=true /p:EnableInstallPackage=false /p:EnableLocalDeploy=false ../R7.HelpDesk.sln</command> | ||
</Command> | ||
<Command> | ||
<type>Custom</type> | ||
<name>Re-deploy Assets</name> | ||
<command>xbuild /p:Configuration=${ProjectConfigName} /p:LocalDeployIncludeBinaries=false /p:EnableTests=false LocalDeploy.targets</command> | ||
</Command> | ||
</CustomCommands> | ||
</CustomCommands> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="Dummy.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="packages.config" /> | ||
<None Include="Deploy.csproj" /> | ||
<None Include="BuildDefaults.targets" /> | ||
<None Include="BuildSettings.targets" /> | ||
<None Include="InstallPackage.targets" /> | ||
<None Include="LocalDeploy.targets" /> | ||
<None Include="Tests.targets" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\R7.HelpDesk\R7.HelpDesk.csproj"> | ||
<Project>{4B5BFA3B-BA1D-4266-ADA4-A1F6F227D768}</Project> | ||
<Name>R7.HelpDesk</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
<Import Project="BuildSettings.targets" /> | ||
<Import Project="BuildDefaults.targets" /> | ||
<Import Project="Tests.targets" /> | ||
<Import Project="LocalDeploy.targets" /> | ||
<Import Project="InstallPackage.targets" /> | ||
<Target Name="AfterBuild" DependsOnTargets="Tests;LocalDeploy;InstallPackage" Condition=" '$(EnableAfterBuild)' != 'false' " /> | ||
<Import Project="..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets" Condition="Exists('..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets')" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Deploy | ||
{ | ||
public class Dummy | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="InstallPackage"> | ||
<Import Project="BuildSettings.targets" Condition=" '$(BuildSettingsImported)' == '' " /> | ||
<Import Project="Tests.targets" Condition=" '$(TestsImported)' == '' "/> | ||
|
||
<PropertyGroup> | ||
<!-- Enable install package creation by default (standalone) --> | ||
<EnableInstallPackage Condition=" '$(EnableInstallPackage)' == '' ">true</EnableInstallPackage> | ||
</PropertyGroup> | ||
<Target Name="InstallPackage" Condition=" '$(EnableInstallPackage)' == 'true' " DependsOnTargets="Tests"> | ||
|
||
<!-- Remove tmp directory (if previous build failed) --> | ||
<RemoveDir Directories="$(TmpDir)" /> | ||
<!-- Read package version from the manifest --> | ||
<XmlPeek Query="/dotnetnuke/packages/package[1]/@version" XmlInputPath="$(MainProjectPath)/R7.HelpDesk.dnn"> | ||
<Output TaskParameter="Result" PropertyName="Version" /> | ||
</XmlPeek> | ||
<PropertyGroup> | ||
<PackageFileName>$(PackageName)-$(Version)-Install.$(Configuration).zip</PackageFileName> | ||
</PropertyGroup> | ||
<!-- Declare binaries --> | ||
<ItemGroup> | ||
<InstallBinaryFiles Include="$(MainProjectOutputPath)/R7.HelpDesk*.dll" /> | ||
<InstallBinaryFiles Include="$(MainProjectOutputPath)/R7.HelpDesk*.pdb" Condition="'$(Configuration)' == 'Debug'" /> | ||
</ItemGroup> | ||
<!-- Declare manifest files --> | ||
<ItemGroup> | ||
<InstallManifestFiles Include="$(MainProjectPath)/*.dnn" /> | ||
<InstallManifestFiles Include="$(MainProjectPath)/*.dnn6" /> | ||
<InstallManifestFiles Include="$(MainProjectPath)/license.htm" /> | ||
<InstallManifestFiles Include="$(MainProjectPath)/releaseNotes.htm" /> | ||
</ItemGroup> | ||
<!-- Declare SqlDataProvider files --> | ||
<ItemGroup> | ||
<InstallSqlDataProviderFiles Include="$(MainProjectPath)/SqlDataProvider/*.SqlDataProvider" /> | ||
</ItemGroup> | ||
<!-- Declare resource files --> | ||
<ItemGroup> | ||
<InstallResourceFiles Include="../**/*.ascx" /> | ||
<InstallResourceFiles Include="../**/*.aspx" /> | ||
<InstallResourceFiles Include="../**/*.asmx" /> | ||
<InstallResourceFiles Include="../**/*.ashx" /> | ||
<InstallResourceFiles Include="../**/*.resx" /> | ||
<InstallResourceFiles Include="../**/*.css" /> | ||
<InstallResourceFiles Include="../**/*.html" /> | ||
<InstallResourceFiles Include="../**/*.htm" Exclude="$(MainProjectPath)/license.htm;$(MainProjectPath)/releaseNotes.htm" /> | ||
<InstallResourceFiles Include="../**/*.xml" /> | ||
<InstallResourceFiles Include="../**/*.xsl" /> | ||
<InstallResourceFiles Include="../**/*.xslt" /> | ||
<InstallResourceFiles Include="../**/*.yml" Exclude="../.travis.yml" /> | ||
<InstallResourceFiles Include="../**/*.resx" /> | ||
<InstallResourceFiles Include="../**/*.js" /> | ||
<InstallResourceFiles Include="../**/*.jpg" /> | ||
<InstallResourceFiles Include="../**/*.png" /> | ||
<InstallResourceFiles Include="../**/*.gif" /> | ||
</ItemGroup> | ||
<!-- Declare excluded files --> | ||
<ItemGroup> | ||
<InstallExcludeFiles Include="../packages/**/*" /> | ||
<InstallExcludeFiles Include="../Deploy/**/*" /> | ||
<InstallExcludeFiles Include="../.git/**/*" /> | ||
<InstallExcludeFiles Include="../.svn/**/*" /> | ||
<InstallExcludeFiles Include="../*/bin/**/*" /> | ||
<InstallExcludeFiles Include="../*/obj/**/*" /> | ||
<InstallExcludeFiles Include="../*/_ReSharper*/**/*" /> | ||
</ItemGroup> | ||
<!-- Apply excluded files filters --> | ||
<ItemGroup> | ||
<InstallResourceFilteredFiles Include="@(InstallResourceFiles)" Exclude="@(InstallExcludeFiles)" /> | ||
</ItemGroup> | ||
<!-- Copy binaries --> | ||
<Copy SourceFiles="@(InstallBinaryFiles)" DestinationFolder="$(TmpDir)/Package/bin" /> | ||
<!-- Copy manifest files --> | ||
<Copy SourceFiles="@(InstallManifestFiles)" DestinationFolder="$(TmpDir)/Package" /> | ||
<!-- Copy SqlDataProvider files --> | ||
<Copy SourceFiles="@(InstallSqlDataProviderFiles)" DestinationFolder="$(TmpDir)/Package/SqlDataProvider" /> | ||
<!-- Copy filtered Resource files to tmp/Resources dir --> | ||
<Copy SourceFiles="@(InstallResourceFilteredFiles)" DestinationFolder="$(TmpDir)/Resources/%(RecursiveDir)" /> | ||
<!-- Declare files to zip --> | ||
<ItemGroup> | ||
<InstallResourceZipFiles Include="$(TmpDir)/Resources/**/*.*" /> | ||
</ItemGroup> | ||
<!-- Create Resources.zip --> | ||
<Zip Condition=" '$(OS)' != 'Unix' " Files="@(InstallResourceZipFiles)" WorkingDirectory="$(MSBuildProjectDirectory)\tmp\Resources" ZipFileName="$(TmpDir)/Resources/Resources.zip" /> | ||
<Exec Condition=" '$(OS)' == 'Unix' " Command="zip -r -6 -UN=UTF8 "Resources.zip" ." WorkingDirectory="$(TmpDir)/Resources" /> | ||
<!-- Move Resources.zip to tmp/Package dir --> | ||
<Copy SourceFiles="$(TmpDir)/Resources/Resources.zip" DestinationFolder="$(TmpDir)/Package/" /> | ||
<Delete Files="$(TmpDir)/Resources/Resources.zip" /> | ||
<!-- Declare install package files --> | ||
<ItemGroup> | ||
<InstallPackageFiles Include="$(TmpDir)/Package/**/*.*" /> | ||
</ItemGroup> | ||
<!-- Create the install package --> | ||
<Zip Condition=" '$(OS)' != 'Unix' " Files="@(InstallPackageFiles)" WorkingDirectory="$(MSBuildProjectDirectory)\tmp\Package" ZipFileName="$(TmpDir)/Package/$(PackageFileName)" /> | ||
<Exec Condition=" '$(OS)' == 'Unix' " Command="zip -r -6 -UN=UTF8 "$(PackageFileName)" ." WorkingDirectory="$(TmpDir)/Package" /> | ||
<!-- Move the install package to the output directory --> | ||
<Copy SourceFiles="$(TmpDir)/Package/$(PackageFileName)" DestinationFolder="$(PackageOutputPath)/" /> | ||
<Delete Files="$(TmpDir)/Package/$(PackageFileName)" /> | ||
<!-- Cleanup --> | ||
<RemoveDir Directories="$(TmpDir)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="LocalDeploy"> | ||
<Import Project="BuildSettings.targets" Condition=" '$(BuildSettingsImported)' == '' " /> | ||
<Import Project="Tests.targets" Condition=" '$(TestsImported)' == '' "/> | ||
|
||
<PropertyGroup> | ||
<!-- Enable local deploy by default (standalone) --> | ||
<EnableLocalDeploy Condition=" '$(EnableLocalDeploy)' == '' ">true</EnableLocalDeploy> | ||
<!-- Include binary files in local deploy by default --> | ||
<LocalDeployIncludeBinaries Condition=" '$(LocalDeployIncludeBinaries)' == '' ">true</LocalDeployIncludeBinaries> | ||
</PropertyGroup> | ||
<Target Name="LocalDeploy" Condition=" '$(EnableLocalDeploy)' == 'true' " DependsOnTargets="Tests"> | ||
|
||
<!-- Declare binaries --> | ||
<ItemGroup> | ||
<LocalDeployBinaryFiles Include="$(MainProjectOutputPath)/R7.HelpDesk*.dll" /> | ||
<LocalDeployBinaryFiles Include="$(MainProjectOutputPath)/R7.HelpDesk*.pdb" Condition="'$(Configuration)' == 'Debug'" /> | ||
</ItemGroup> | ||
<!-- Declare resource files --> | ||
<ItemGroup> | ||
<LocalDeployResourceFiles Include="../**/*.ascx" /> | ||
<LocalDeployResourceFiles Include="../**/*.aspx" /> | ||
<LocalDeployResourceFiles Include="../**/*.asmx" /> | ||
<LocalDeployResourceFiles Include="../**/*.ashx" /> | ||
<LocalDeployResourceFiles Include="../**/*.resx" /> | ||
<LocalDeployResourceFiles Include="../**/*.css" /> | ||
<LocalDeployResourceFiles Include="../**/*.html" /> | ||
<LocalDeployResourceFiles Include="../**/*.htm" /> | ||
<LocalDeployResourceFiles Include="../**/*.xml" /> | ||
<LocalDeployResourceFiles Include="../**/*.xsl" /> | ||
<LocalDeployResourceFiles Include="../**/*.xslt" /> | ||
<LocalDeployResourceFiles Include="../**/*.yml" Exclude="../.travis.yml" /> | ||
<LocalDeployResourceFiles Include="../**/*.resx" /> | ||
<LocalDeployResourceFiles Include="../**/*.js" /> | ||
<LocalDeployResourceFiles Include="../**/*.jpg" /> | ||
<LocalDeployResourceFiles Include="../**/*.png" /> | ||
<LocalDeployResourceFiles Include="../**/*.gif" /> | ||
</ItemGroup> | ||
<!-- Declare excluded files --> | ||
<ItemGroup> | ||
<LocalDeployExcludeFiles Include="../packages/**/*" /> | ||
<LocalDeployExcludeFiles Include="../Deploy/**/*" /> | ||
<LocalDeployExcludeFiles Include="../.git/**/*" /> | ||
<LocalDeployExcludeFiles Include="../.svn/**/*" /> | ||
<LocalDeployExcludeFiles Include="../*/bin/**/*" /> | ||
<LocalDeployExcludeFiles Include="../*/obj/**/*" /> | ||
<LocalDeployExcludeFiles Include="../*/_ReSharper*/**/*" /> | ||
</ItemGroup> | ||
<!-- Apply excluded files filters --> | ||
<ItemGroup> | ||
<LocalDeployResourceFilteredFiles Include="@(LocalDeployResourceFiles)" Exclude="@(LocalDeployExcludeFiles)" /> | ||
</ItemGroup> | ||
<!-- Copy binaries --> | ||
<Copy Condition=" '$(LocalDeployIncludeBinaries)' == 'true' " SourceFiles="@(LocalDeployBinaryFiles)" DestinationFolder="$(DnnLocalDeployPath)/bin" SkipUnchangedFiles="true" /> | ||
<!-- Copy filtered Resource files to tmp/Resources dir --> | ||
<Copy SourceFiles="@(LocalDeployResourceFilteredFiles)" DestinationFolder="$(DnnLocalDeployPath)/DesktopModules/R7.HelpDesk/%(RecursiveDir)" SkipUnchangedFiles="true" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="Tests"> | ||
<PropertyGroup> | ||
<!-- Enable tests by default (standalone) --> | ||
<EnableTests Condition=" '$(EnableTests)' == '' ">true</EnableTests> | ||
<TestsImported>true</TestsImported> | ||
</PropertyGroup> | ||
<Target Name="Tests" Condition=" '$(EnableTests)' == 'true' "> | ||
<!-- | ||
<Exec Condition=" '$(OS)' == 'Unix' " Command="mono ../packages/xunit.runner.console.2.1.0/tools/xunit.console.exe ..\R7.HelpDesk.Tests\bin\$(Configuration)\R7.HelpDesk.Tests.dll" /> | ||
<Exec Condition=" '$(OS)' != 'Unix' " Command="..\packages\xunit.runner.console.2.1.0\tools\xunit.console ..\R7.HelpDesk.Tests\bin\$(Configuration)\R7.HelpDesk.Tests.dll" /> | ||
--> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="MSBuildTasks" version="1.5.0.235" targetFramework="net45" developmentDependency="true" /> | ||
</packages> |
Oops, something went wrong.