Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Commit b217151

Browse files
Add artifacts to AppVeyor build (#117)
add artifacts to AppVeyor build
1 parent 01065ba commit b217151

File tree

19 files changed

+112
-40
lines changed

19 files changed

+112
-40
lines changed

AjaxControlToolkit.CdnBundleBuilder/AjaxControlToolkit.CdnBundleBuilder.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<DebugSymbols>true</DebugSymbols>
1919
<DebugType>full</DebugType>
2020
<Optimize>false</Optimize>
21-
<OutputPath>..\bin\</OutputPath>
21+
<OutputPath>..\bin\Debug\</OutputPath>
2222
<DefineConstants>DEBUG;TRACE</DefineConstants>
2323
<ErrorReport>prompt</ErrorReport>
2424
<WarningLevel>4</WarningLevel>
@@ -28,7 +28,7 @@
2828
<PlatformTarget>AnyCPU</PlatformTarget>
2929
<DebugType>pdbonly</DebugType>
3030
<Optimize>true</Optimize>
31-
<OutputPath>..\bin\</OutputPath>
31+
<OutputPath>..\bin\Release\</OutputPath>
3232
<DefineConstants>TRACE</DefineConstants>
3333
<ErrorReport>prompt</ErrorReport>
3434
<WarningLevel>4</WarningLevel>

AjaxControlToolkit.CdnBundleBuilder/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ static void Main(string[] args) {
2020

2121
var context = new BundleContext(CreateHttpContext(), BundleTable.Bundles, String.Empty);
2222

23-
File.WriteAllText("../AjaxControlToolkit.StaticResources/Scripts/Bundle.js", scriptBundle.GenerateBundleResponse(context).Content);
24-
File.WriteAllText("../AjaxControlToolkit.StaticResources/Styles/Bundle.css", styleBundle.GenerateBundleResponse(context).Content);
23+
File.WriteAllText("../../AjaxControlToolkit.StaticResources/Scripts/Bundle.js", scriptBundle.GenerateBundleResponse(context).Content);
24+
File.WriteAllText("../../AjaxControlToolkit.StaticResources/Styles/Bundle.css", styleBundle.GenerateBundleResponse(context).Content);
2525
}
2626

2727
static HttpContextWrapper CreateHttpContext() {
@@ -34,8 +34,8 @@ static HttpContextWrapper CreateHttpContext() {
3434
class VirtualPathProviderImpl : VirtualPathProvider {
3535
public override VirtualFile GetFile(string virtualPath) {
3636
virtualPath = virtualPath
37-
.Replace("~/Scripts/AjaxControlToolkit/", "../AjaxControlToolkit.StaticResources/Scripts/")
38-
.Replace("~/Content/AjaxControlToolkit/Styles", "../AjaxControlToolkit.StaticResources/Styles/");
37+
.Replace("~/Scripts/AjaxControlToolkit/", "../../AjaxControlToolkit.StaticResources/Scripts/")
38+
.Replace("~/Content/AjaxControlToolkit/Styles", "../../AjaxControlToolkit.StaticResources/Styles/");
3939

4040
return new VirtualFileImpl(virtualPath);
4141
}

AjaxControlToolkit.HtmlEditor.Sanitizer/AjaxControlToolkit.HtmlEditor.Sanitizer.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
<DebugSymbols>true</DebugSymbols>
1717
<DebugType>full</DebugType>
1818
<Optimize>false</Optimize>
19-
<OutputPath>..\bin\</OutputPath>
19+
<OutputPath>..\bin\Debug\</OutputPath>
2020
<DefineConstants>DEBUG;TRACE</DefineConstants>
2121
<ErrorReport>prompt</ErrorReport>
2222
<WarningLevel>4</WarningLevel>
2323
</PropertyGroup>
2424
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2525
<DebugType>pdbonly</DebugType>
2626
<Optimize>true</Optimize>
27-
<OutputPath>..\bin\</OutputPath>
27+
<OutputPath>..\bin\Release\</OutputPath>
2828
<DefineConstants>TRACE</DefineConstants>
2929
<ErrorReport>prompt</ErrorReport>
3030
<WarningLevel>4</WarningLevel>

AjaxControlToolkit.Jasmine/AjaxControlToolkit.Jasmine.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3636
<DebugType>pdbonly</DebugType>
3737
<Optimize>true</Optimize>
38-
<OutputPath>..\bin\</OutputPath>
38+
<OutputPath>bin\</OutputPath>
3939
<DefineConstants>TRACE</DefineConstants>
4040
<ErrorReport>prompt</ErrorReport>
4141
<WarningLevel>4</WarningLevel>

AjaxControlToolkit.LinkStaticResources/AjaxControlToolkit.LinkStaticResources.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<DebugSymbols>true</DebugSymbols>
1818
<DebugType>full</DebugType>
1919
<Optimize>false</Optimize>
20-
<OutputPath>..\bin\</OutputPath>
20+
<OutputPath>..\bin\Debug\</OutputPath>
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
@@ -26,7 +26,7 @@
2626
<PlatformTarget>AnyCPU</PlatformTarget>
2727
<DebugType>pdbonly</DebugType>
2828
<Optimize>true</Optimize>
29-
<OutputPath>..\bin\</OutputPath>
29+
<OutputPath>..\bin\Release\</OutputPath>
3030
<DefineConstants>TRACE</DefineConstants>
3131
<ErrorReport>prompt</ErrorReport>
3232
<WarningLevel>4</WarningLevel>

AjaxControlToolkit.LinkStaticResources/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace AjaxControlToolkit.LinkStaticResources {
1212
class Program {
1313

1414
static void Main(string[] args) {
15-
string solutionDirPath = Directory.GetParent(Directory.GetParent(Assembly.GetEntryAssembly().Location).FullName).FullName;
15+
string solutionDirPath = Directory.GetParent(Directory.GetParent(Directory.GetParent(Assembly.GetEntryAssembly().Location).FullName).FullName).FullName;
1616

1717
string
1818
outputDir = Path.Combine(solutionDirPath, @"AjaxControlToolkit.StaticResources\"),

AjaxControlToolkit.Reference/Controllers/ReleaseNotesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace AjaxControlToolkit.Reference.Controllers {
1717
public class ReleaseNotesController : Controller {
1818
public ActionResult Index() {
19-
var milestones = new string[] { "16.2" };
19+
var milestones = new string[] { "16.1.1" };
2020

2121
return View(milestones);
2222
}

AjaxControlToolkit.StaticResources/AjaxControlToolkit.StaticResources.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<DebugSymbols>true</DebugSymbols>
1919
<DebugType>full</DebugType>
2020
<Optimize>false</Optimize>
21-
<OutputPath>..\bin\</OutputPath>
21+
<OutputPath>..\bin\Debug\</OutputPath>
2222
<DefineConstants>DEBUG;TRACE</DefineConstants>
2323
<ErrorReport>prompt</ErrorReport>
2424
<WarningLevel>4</WarningLevel>
@@ -27,7 +27,7 @@
2727
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2828
<DebugType>pdbonly</DebugType>
2929
<Optimize>true</Optimize>
30-
<OutputPath>..\bin\</OutputPath>
30+
<OutputPath>..\bin\Release\</OutputPath>
3131
<DefineConstants>TRACE</DefineConstants>
3232
<ErrorReport>prompt</ErrorReport>
3333
<WarningLevel>4</WarningLevel>

AjaxControlToolkit.Tests/AjaxControlToolkit.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
<DebugSymbols>true</DebugSymbols>
1818
<DebugType>full</DebugType>
1919
<Optimize>false</Optimize>
20-
<OutputPath>..\bin\</OutputPath>
20+
<OutputPath>..\bin\Debug\</OutputPath>
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
2424
</PropertyGroup>
2525
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2626
<DebugType>pdbonly</DebugType>
2727
<Optimize>true</Optimize>
28-
<OutputPath>..\bin\</OutputPath>
28+
<OutputPath>..\bin\Release\</OutputPath>
2929
<DefineConstants>TRACE</DefineConstants>
3030
<ErrorReport>prompt</ErrorReport>
3131
<WarningLevel>4</WarningLevel>

AjaxControlToolkit.Tests/DocumentationTests/DocumentationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public void DocumentationConsistent() {
2525
}
2626

2727
static string GetScriptFolder() {
28-
return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"..\AjaxControlToolkit\Scripts");
28+
return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"..\..\AjaxControlToolkit\Scripts");
2929
}
3030

3131
static string GetXmlDocFolder() {

AjaxControlToolkit.Tests/JasmineTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void Setup() {
2929
}
3030

3131
static string GetDriverDirectory() {
32-
return Path.GetDirectoryName(typeof(JasmineTests).Assembly.Location);
32+
return Directory.GetParent(Path.GetDirectoryName(typeof(JasmineTests).Assembly.Location)).FullName;
3333
}
3434

3535
[Test]

AjaxControlToolkit/AjaxControlToolkit.csproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@
1818
<DebugSymbols>true</DebugSymbols>
1919
<DebugType>full</DebugType>
2020
<Optimize>false</Optimize>
21-
<OutputPath>..\bin\</OutputPath>
21+
<OutputPath>..\bin\Debug\</OutputPath>
2222
<DefineConstants>DEBUG;TRACE</DefineConstants>
2323
<ErrorReport>prompt</ErrorReport>
2424
<WarningLevel>4</WarningLevel>
25-
<DocumentationFile>..\bin\AjaxControlToolkit.XML</DocumentationFile>
25+
<DocumentationFile>..\bin\Debug\AjaxControlToolkit.XML</DocumentationFile>
2626
<NoWarn>1591</NoWarn>
2727
</PropertyGroup>
2828
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2929
<DebugType>pdbonly</DebugType>
3030
<Optimize>true</Optimize>
31-
<OutputPath>..\bin\</OutputPath>
31+
<OutputPath>..\bin\Release\</OutputPath>
3232
<DefineConstants>TRACE</DefineConstants>
3333
<ErrorReport>prompt</ErrorReport>
3434
<WarningLevel>4</WarningLevel>
35+
<DocumentationFile>..\bin\Release\AjaxControlToolkit.XML</DocumentationFile>
3536
<NoWarn>1591</NoWarn>
3637
</PropertyGroup>
3738
<ItemGroup>
@@ -1379,7 +1380,8 @@
13791380
</ItemGroup>
13801381
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
13811382
<PropertyGroup>
1382-
<PostBuildEvent>"$(TargetDir)LinkStaticResources"</PostBuildEvent>
1383+
<PostBuildEvent>"$(TargetDir)LinkStaticResources"
1384+
copy "$(TargetDir)AjaxControlToolkit.xml" ""$(TargetDir)\.."</PostBuildEvent>
13831385
</PropertyGroup>
13841386
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
13851387
Other similar extension points exist, see Microsoft.Common.targets.

AjaxControlToolkitVsPackage/AjaxControlToolkitVsPackage.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</None>
6565
</ItemGroup>
6666
<ItemGroup>
67-
<Content Include="..\bin\AjaxControlToolkit.dll">
67+
<Content Include="..\bin\Release\AjaxControlToolkit.dll">
6868
<Link>AjaxControlToolkit.dll</Link>
6969
<IncludeInVSIX>true</IncludeInVSIX>
7070
</Content>

AppVeyor/CreateArtifacts.ps1

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
New-Item AjaxControlToolkit.StaticResources\Content\AjaxControlToolkit\Images -type directory
2+
New-Item AjaxControlToolkit.StaticResources\Content\AjaxControlToolkit\Styles -type directory
3+
New-Item AjaxControlToolkit.StaticResources\Scripts\AjaxControlToolkit\Debug -type directory
4+
New-Item AjaxControlToolkit.StaticResources\Scripts\AjaxControlToolkit\Release -type directory
5+
6+
Copy-Item -Path AjaxControlToolkit.StaticResources\Images\* -Destination AjaxControlToolkit.StaticResources\Content\AjaxControlToolkit\Images -Recurse
7+
Copy-Item -Path AjaxControlToolkit.StaticResources\Styles\* -Destination AjaxControlToolkit.StaticResources\Content\AjaxControlToolkit\Styles -Recurse
8+
Copy-Item -Path AjaxControlToolkit.StaticResources\Scripts\Debug\* -Destination AjaxControlToolkit.StaticResources\Scripts\AjaxControlToolkit\Debug -Recurse
9+
Copy-Item -Path AjaxControlToolkit.StaticResources\Scripts\Release\* -Destination AjaxControlToolkit.StaticResources\Scripts\AjaxControlToolkit\Release -Recurse
10+
11+
$archiveSuffix = "build"
12+
13+
Push-Location -Path "AjaxControlToolkit.StaticResources"
14+
7z a ..\AjaxControlToolkit.StaticResources-$archiveSuffix-$env:APPVEYOR_BUILD_NUMBER.zip Content\AjaxControlToolkit\Images -ir!Content\AjaxControlToolkit\Styles\* -ir!Scripts\AjaxControlToolkit\Debug\* -ir!Scripts\AjaxControlToolkit\Release\* ..\bin\Release\AjaxControlToolkit.StaticResources.???
15+
Pop-Location
16+
17+
Push-Location -Path "bin\Release"
18+
7z a ..\..\AjaxControlToolkit-$archiveSuffix-$env:APPVEYOR_BUILD_NUMBER.zip AjaxControlToolkit.???
19+
7z a ..\..\AjaxControlToolkit.HtmlEditor.Sanitizer-$archiveSuffix-$env:APPVEYOR_BUILD_NUMBER.zip AjaxControlToolkit.HtmlEditor.Sanitizer.???
20+
Pop-Location
21+
22+
$sampleSiteFolder = "AjaxControlToolkit.SampleSite\"
23+
Copy-Item "bin\Release\AjaxControlToolkit.dll" -Destination "$sampleSiteFolder\bin"
24+
Copy-Item "bin\Release\AjaxControlToolkit.HtmlEditor.Sanitizer.dll" -Destination "$sampleSiteFolder\bin"
25+
Copy-Item "bin\Release\AjaxControlToolkit.StaticResources.dll" -Destination "$sampleSiteFolder\bin"
26+
27+
nuget restore "$sampleSiteFolder\packages.config" -SolutionDirectory $sampleSiteFolder
28+
$sampleSiteBinFolder = Join-Path $sampleSiteFolder "bin"
29+
Get-ChildItem $sampleSiteBinFolder -Filter *.refresh | `
30+
ForEach-Object {
31+
$content = Get-Content $_.FullName
32+
$dllFileName = $content -replace "^\.\.\\", ""
33+
Copy-Item "$sampleSiteFolder/$dllFileName" $sampleSiteBinFolder -Force
34+
}
35+
36+
Remove-Item "$sampleSiteFolder\bin\*" -Exclude *.dll
37+
Remove-Item "$sampleSiteFolder\packages" -Recurse -Force
38+
Remove-Item "$sampleSiteFolder\packages.config"
39+
40+
7z a AjaxControlToolkit.SampleSite-$archiveSuffix-$env:APPVEYOR_BUILD_NUMBER.zip $sampleSiteFolder

AppVeyor/DeployJasmineSite.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
& "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:iisApp="$env:APPVEYOR_BUILD_FOLDER\AjaxControlToolkit.Jasmine" -dest:iisApp=`"Default Web Site`"
2+
3+
$FilesAndFolders = gci "C:\inetpub\wwwroot" -recurse | % {$_.FullName}
4+
foreach($FileAndFolder in $FilesAndFolders)
5+
{
6+
$item = gi -literalpath $FileAndFolder
7+
$acl = $item.GetAccessControl()
8+
$permission = "Everyone","FullControl","Allow"
9+
$rule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission
10+
$acl.SetAccessRule($rule)
11+
$item.SetAccessControl($acl)
12+
}

ReferenceCore/GitHubIssue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace AjaxControlToolkit.Reference {
77
public class GitHubIssue {
88

9-
public string Url { get; set; }
9+
public string Html_Url { get; set; }
1010
public int Number { get; set; }
1111
public string Title { get; set; }
1212
public List<GitHubLabel> Labels;

ReferenceCore/ReleaseNotes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private void BuildTypeIssues(IEnumerable<GitHubIssue> typeIssues, string typeNam
7070
_markupStringBuilder.Append(
7171
_renderer.RenderListItem(
7272
String.Format("Item {0} - {1}",
73-
_renderer.RenderUrl(issue.Number.ToString(), issue.Url),
73+
_renderer.RenderUrl(issue.Number.ToString(), issue.Html_Url),
7474
_renderer.RenderText(issue.Title))));
7575

7676
issueCounter++;
@@ -91,7 +91,7 @@ private void BuildWarningSection(IEnumerable<GitHubIssue> invalidIssues) {
9191
_markupStringBuilder.Append(_renderer.RenderNewParagraph());
9292

9393
foreach(var issue in invalidIssues)
94-
_markupStringBuilder.Append(_renderer.RenderListItem(_renderer.RenderUrl(issue.Title, issue.Url)));
94+
_markupStringBuilder.Append(_renderer.RenderListItem(_renderer.RenderUrl(issue.Title, issue.Html_Url)));
9595
}
9696
}
9797
}

SharedAssemblyInfo.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44
// WARNING this file is shared accross multiple projects
55

66
[assembly: AssemblyProduct("ASP.NET AJAX Control Toolkit")]
7-
[assembly: AssemblyCopyright("Copyright © CodePlex Foundation 2012-2015")]
7+
[assembly: AssemblyCopyright("Copyright © CodePlex Foundation 2012-2016")]
88
[assembly: AssemblyCompany("CodePlex Foundation")]
99

10-
[assembly: AssemblyVersion("15.1.2.0")]
11-
[assembly: AssemblyFileVersion("15.1.2.0")]
10+
[assembly: AssemblyVersion("16.1.1.0")]
11+
[assembly: AssemblyFileVersion("16.1.1.0")]
1212

13-
[assembly: NeutralResourcesLanguage("en-US")]
13+
[assembly: NeutralResourcesLanguage("en-US")]
14+
15+
#if DEBUG
16+
[assembly: AssemblyConfiguration("Debug")]
17+
#else
18+
[assembly: AssemblyConfiguration("Release")]
19+
#endif

appveyor.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,38 @@ os: Visual Studio 2013
55
init:
66
- git config --global core.autocrlf true
77

8-
98
install:
109
# Workaround for NUnit Console Runner v3.2.1 timeout bug (#1509). Try to remove it when a fix is available.
1110
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/nunit-3-2-0.ps1'))
12-
11+
12+
environment:
13+
AjaxControlToolkitTestSiteUrl: http://localhost/TestRunner.aspx
14+
1315
cache:
1416
- packages -> **\packages.config
1517

18+
services: iis
19+
1620
before_build:
1721
- ps: nuget restore
1822

1923
build:
2024
project: AjaxControlToolkit.sln
2125
publish_wap: true
22-
verbosity: minimal
26+
verbosity: minimal
27+
28+
artifacts:
29+
- path: AjaxControlToolkit-build-*.zip
30+
- path: AjaxControlToolkit.StaticResources-build-*.zip
31+
- path: AjaxControlToolkit.HtmlEditor.Sanitizer-build-*.zip
32+
- path: AjaxControlToolkit.SampleSite-build-*.zip
2333

24-
test:
25-
assemblies: bin\AjaxControlToolkit.Tests.dll
26-
27-
services: iis
28-
2934
before_test:
30-
- ps: "& \"C:\\Program Files\\IIS\\Microsoft Web Deploy V3\\msdeploy.exe\" -verb:sync -source:iisApp=\"$env:APPVEYOR_BUILD_FOLDER\\AjaxControlToolkit.Jasmine\" -dest:iisApp=`\"Default Web Site`\"\n\n\n$FilesAndFolders = gci \"C:\\inetpub\\wwwroot\" -recurse | % {$_.FullName}\nforeach($FileAndFolder in $FilesAndFolders)\n{\n $item = gi -literalpath $FileAndFolder \n $acl = $item.GetAccessControl() \n $permission = \"Everyone\",\"FullControl\",\"Allow\"\n $rule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission\n $acl.SetAccessRule($rule)\n $item.SetAccessControl($acl)\n}"
35+
- ps: '& "AppVeyor\DeployJasmineSite.ps1"'
36+
37+
test:
38+
assemblies: bin\Debug\AjaxControlToolkit.Tests.dll
39+
40+
after_test:
41+
- ps: 'msbuild "AjaxControlToolkit.sln" /p:Configuration=Release /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"'
42+
- ps: '& "AppVeyor\CreateArtifacts.ps1"'

0 commit comments

Comments
 (0)