Skip to content

Commit 54ed2b0

Browse files
committed
build scripts for appveyor ci
1 parent e398814 commit 54ed2b0

13 files changed

+263
-79
lines changed

.gitignore

Lines changed: 83 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,46 @@
1-
#################
2-
## Visual Studio
3-
#################
4-
51
## Ignore Visual Studio temporary files, build results, and
62
## files generated by popular Visual Studio add-ons.
73

84
# User-specific files
95
*.suo
106
*.user
7+
*.userosscache
118
*.sln.docstates
129

13-
# Build results
10+
# User-specific files (MonoDevelop/Xamarin Studio)
11+
*.userprefs
1412

13+
# Build results
1514
[Dd]ebug/
15+
[Dd]ebugPublic/
1616
[Rr]elease/
17+
[Rr]eleases/
1718
x64/
19+
x86/
20+
build/
21+
bld/
1822
[Bb]in/
1923
[Oo]bj/
2024

25+
# Visual Studo 2015 cache/options directory
26+
.vs/
27+
2128
# MSTest test Results
2229
[Tt]est[Rr]esult*/
2330
[Bb]uild[Ll]og.*
2431

32+
# NUNIT
33+
*.VisualState.xml
34+
TestResult.xml
35+
36+
# Build Results of an ATL Project
37+
[Dd]ebugPS/
38+
[Rr]eleasePS/
39+
dlldata.c
40+
2541
*_i.c
2642
*_p.c
43+
*_i.h
2744
*.ilk
2845
*.meta
2946
*.obj
@@ -43,9 +60,12 @@ x64/
4360
*.vssscc
4461
.builds
4562
*.pidb
46-
*.log
63+
*.svclog
4764
*.scc
4865

66+
# Chutzpah Test files
67+
_Chutzpah*
68+
4969
# Visual C++ cache files
5070
ipch/
5171
*.aps
@@ -59,12 +79,19 @@ ipch/
5979
*.vsp
6080
*.vspx
6181

82+
# TFS 2012 Local Workspace
83+
$tf/
84+
6285
# Guidance Automation Toolkit
6386
*.gpState
6487

6588
# ReSharper is a .NET coding add-in
6689
_ReSharper*/
6790
*.[Rr]e[Ss]harper
91+
*.DotSettings.user
92+
93+
# JustCode is a .NET coding addin-in
94+
.JustCode
6895

6996
# TeamCity is a build add-in
7097
_TeamCity*
@@ -73,9 +100,16 @@ _TeamCity*
73100
*.dotCover
74101

75102
# NCrunch
76-
*.ncrunch*
103+
_NCrunch_*
77104
.*crunch*.local.xml
78105

106+
# MightyMoose
107+
*.mm.*
108+
AutoTest.Net/
109+
110+
# Web workbench (sass)
111+
.sass-cache/
112+
79113
# Installshield output folder
80114
[Ee]xpress/
81115

@@ -93,44 +127,72 @@ DocProject/Help/html
93127
publish/
94128

95129
# Publish Web Output
96-
*.Publish.xml
130+
*.[Pp]ublish.xml
131+
*.azurePubxml
132+
# TODO: Comment the next line if you want to checkin your web deploy settings
133+
# but database connection strings (with potential passwords) will be unencrypted
97134
*.pubxml
98-
99-
# NuGet Packages Directory
100-
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
101-
packages/
102-
.nuget/
135+
*.publishproj
136+
137+
# NuGet Packages
138+
*.nupkg
139+
# The packages folder can be ignored because of Package Restore
140+
packages/*
141+
# Folder with nuget.exe (build.cmd will restore this)
142+
.nuget/*
103143
.nuget/packages.config
104144

105145
# Windows Azure Build Output
106-
csx
146+
csx/
107147
*.build.csdef
108148

109149
# Windows Store app package directory
110150
AppPackages/
111151

112152
# Others
113-
sql/
114-
*.Cache
153+
*.[Cc]ache
115154
ClientBin/
116155
[Ss]tyle[Cc]op.*
117156
~$*
118157
*~
119158
*.dbmdl
120-
*.[Pp]ublish.xml
159+
*.dbproj.schemaview
121160
*.pfx
122161
*.publishsettings
162+
node_modules/
163+
bower_components/
123164

124165
# RIA/Silverlight projects
125166
Generated_Code/
126167

127-
# Backup & report files from converting an old project file to a newer
128-
# Visual Studio version. Backup files are not needed, because we have git ;-)
168+
# Backup & report files from converting an old project file
169+
# to a newer Visual Studio version. Backup files are not needed,
170+
# because we have git ;-)
129171
_UpgradeReport_Files/
130172
Backup*/
131173
UpgradeLog*.XML
132174
UpgradeLog*.htm
133175

134176
# SQL Server files
135-
App_Data/*.mdf
136-
App_Data/*.ldf
177+
*.mdf
178+
*.ldf
179+
180+
# Business Intelligence projects
181+
*.rdl.data
182+
*.bim.layout
183+
*.bim_*.settings
184+
185+
# Microsoft Fakes
186+
FakesAssemblies/
187+
188+
# Node.js Tools for Visual Studio
189+
.ntvs_analysis.dat
190+
191+
# Visual Studio 6 build log
192+
*.plg
193+
194+
# Visual Studio 6 workspace options file
195+
*.opt
196+
197+
# xunit
198+
.xunit/*

.travis.yml

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

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Kyle Spearrin
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Visual Studio jQuery Code Snippets
22

3-
[![Build Status](https://travis-ci.org/kspearrin/Visual-Studio-jQuery-Code-Snippets.svg)](https://travis-ci.org/kspearrin/Visual-Studio-jQuery-Code-Snippets)
3+
[![Build status](https://ci.appveyor.com/api/projects/status/3o0b1ofu94xuqpsa?svg=true)](https://ci.appveyor.com/project/kspearrin/visual-studio-jquery-code-snippets)
44

55
I have updated the popular jQuery code snippets for use in Visual Studio 2012, 2013, and 2015. See a demo video on YouTube here: <http://www.youtube.com/watch?v=Escy0hbEkI8&hd=1>
66

@@ -23,7 +23,7 @@ There are over 130 code snippets for jQuery included. Check out the [snippet lis
2323

2424
## Changelog
2525

26-
**v1.5**
26+
**v1.5.0**
2727
- Added VS 2015 support. Thanks @madskristensen!
2828
- Upgraded project files to VS 2013.
2929
- Updated HTML snippet default library versions to latest.

Tests/SnippetTests.cs

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
using System;
22
using System.IO;
33
using System.Xml;
4-
using NUnit.Framework;
4+
using Xunit;
55

66
namespace Tests
77
{
8-
[TestFixture]
98
public class SnippetTests
109
{
1110
// --- CONFIGURATION ---
@@ -14,7 +13,7 @@ public class SnippetTests
1413
private const string Version = "1.5.0";
1514
// --- END CONFIGURATION ---
1615

17-
[Test]
16+
[Fact]
1817
public void SnippetTitlesAreCorrect()
1918
{
2019
foreach (var snippetFile in Directory.EnumerateFiles(SnippetPath, "*.snippet", SearchOption.AllDirectories))
@@ -26,11 +25,11 @@ public void SnippetTitlesAreCorrect()
2625

2726
var titleNode = snippetDoc.GetElementsByTagName("Title");
2827
var title = titleNode[0].InnerText;
29-
Assert.IsTrue(snippetName == title);
28+
Assert.True(snippetName == title);
3029
}
3130
}
3231

33-
[Test]
32+
[Fact]
3433
public void SnippetShortcutsAreCorrect()
3534
{
3635
foreach (var snippetFile in Directory.EnumerateFiles(SnippetPath, "*.snippet", SearchOption.AllDirectories))
@@ -42,11 +41,11 @@ public void SnippetShortcutsAreCorrect()
4241

4342
var shortcutNode = snippetDoc.GetElementsByTagName("Shortcut");
4443
var shortcut = shortcutNode[0].InnerText;
45-
Assert.IsTrue(snippetName == shortcut);
44+
Assert.True(snippetName == shortcut);
4645
}
4746
}
4847

49-
[Test]
48+
[Fact]
5049
public void SnippetsHaveDescriptions()
5150
{
5251
foreach (var snippetFile in Directory.EnumerateFiles(SnippetPath, "*.snippet", SearchOption.AllDirectories))
@@ -55,14 +54,14 @@ public void SnippetsHaveDescriptions()
5554
snippetDoc.Load(snippetFile);
5655

5756
var descriptionNode = snippetDoc.GetElementsByTagName("Description");
58-
Assert.IsTrue(descriptionNode != null);
57+
Assert.True(descriptionNode != null);
5958

6059
var description = descriptionNode[0].InnerText;
61-
Assert.IsTrue(!string.IsNullOrWhiteSpace(description) && description.Length > 10);
60+
Assert.True(!string.IsNullOrWhiteSpace(description) && description.Length > 10);
6261
}
6362
}
6463

65-
[Test]
64+
[Fact]
6665
public void SnippetsHaveAuthors()
6766
{
6867
foreach (var snippetFile in Directory.EnumerateFiles(SnippetPath, "*.snippet", SearchOption.AllDirectories))
@@ -71,14 +70,14 @@ public void SnippetsHaveAuthors()
7170
snippetDoc.Load(snippetFile);
7271

7372
var authorNode = snippetDoc.GetElementsByTagName("Author");
74-
Assert.IsTrue(authorNode != null);
73+
Assert.True(authorNode != null);
7574

7675
var author = authorNode[0].InnerText;
77-
Assert.IsTrue(!string.IsNullOrWhiteSpace(author) && author.Length > 5);
76+
Assert.True(!string.IsNullOrWhiteSpace(author) && author.Length > 5);
7877
}
7978
}
8079

81-
[Test]
80+
[Fact]
8281
public void SnippetsHaveHelpUrls()
8382
{
8483
foreach (var snippetFile in Directory.EnumerateFiles(SnippetPath, "*.snippet", SearchOption.AllDirectories))
@@ -87,24 +86,24 @@ public void SnippetsHaveHelpUrls()
8786
snippetDoc.Load(snippetFile);
8887

8988
var urlNode = snippetDoc.GetElementsByTagName("HelpUrl");
90-
Assert.IsTrue(urlNode != null);
89+
Assert.True(urlNode != null);
9190

9291
var url = urlNode[0].InnerText;
93-
Assert.IsTrue(!string.IsNullOrWhiteSpace(url) && url == HelpUrl);
92+
Assert.True(!string.IsNullOrWhiteSpace(url) && url == HelpUrl);
9493
}
9594
}
9695

97-
[Test]
96+
[Fact]
9897
public void SnippetsAreProperFormattedXml()
9998
{
10099
foreach (var snippetFile in Directory.EnumerateFiles(SnippetPath, "*.snippet", SearchOption.AllDirectories))
101100
{
102101
var contents = File.ReadAllText(snippetFile);
103-
Assert.IsTrue(contents.Contains("<?xml version=\"1.0\" encoding=\"utf-8\"?>"));
102+
Assert.True(contents.Contains("<?xml version=\"1.0\" encoding=\"utf-8\"?>"));
104103
}
105104
}
106105

107-
[Test]
106+
[Fact]
108107
public void SnippetsHaveCorrectVersion()
109108
{
110109
foreach (var snippetFile in Directory.EnumerateFiles(SnippetPath, "*.snippet", SearchOption.AllDirectories))
@@ -113,13 +112,13 @@ public void SnippetsHaveCorrectVersion()
113112
snippetDoc.Load(snippetFile);
114113

115114
var snippetNode = snippetDoc.GetElementsByTagName("CodeSnippet");
116-
Assert.IsTrue(snippetNode != null);
115+
Assert.True(snippetNode != null);
117116

118117
var formatAttr = snippetNode[0].Attributes["Format"];
119-
Assert.IsTrue(formatAttr != null);
118+
Assert.True(formatAttr != null);
120119

121120
var format = formatAttr.InnerText;
122-
Assert.IsTrue(!string.IsNullOrWhiteSpace(format) && format == Version);
121+
Assert.True(!string.IsNullOrWhiteSpace(format) && format == Version);
123122
}
124123
}
125124
}

0 commit comments

Comments
 (0)