Skip to content

Commit 8791468

Browse files
author
Josh Quintus
committed
Configure appveyor.
1 parent fe8b8e7 commit 8791468

3 files changed

Lines changed: 72 additions & 1 deletion

File tree

ColorCat.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ VisualStudioVersion = 14.0.24720.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ColorCat", "ColorCat\ColorCat.csproj", "{022A0482-5B90-426A-862C-8891C6D5DB8C}"
77
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5C26B10E-E067-47C9-8060-6662D16EDBEE}"
9+
ProjectSection(SolutionItems) = preProject
10+
appveyor.yml = appveyor.yml
11+
README.md = README.md
12+
EndProjectSection
13+
EndProject
814
Global
915
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1016
Debug|Any CPU = Debug|Any CPU

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# ColorCat
1+
# ColorCat [![Build status](https://ci.appveyor.com/api/projects/status/s2lffvj5fbinhqe4/branch/master?svg=true)](https://ci.appveyor.com/project/jquintus/colorcat/branch/master)
2+
23
A command line tool to add a little color to your console
34

45
This tool will cat a file, but make any lines with "ERROR" red. More features to come.

appveyor.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Great reference: http://www.appveyor.com/docs/appveyor-yml
2+
3+
version: 1.0.{build}
4+
skip_tags: false
5+
configuration: Release
6+
init:
7+
- ps: >-
8+
$parsedReleaseBuildVersion = $env:APPVEYOR_REPO_TAG_NAME -Match "(\d+.\d+.\d+(.\d+)?)"
9+
10+
If($env:appveyor_repo_tag -AND $parsedReleaseBuildVersion) {
11+
$env:BuildVersion = $matches[0]
12+
$env:IsGithubRelease = $TRUE
13+
}
14+
else {
15+
$env:BuildVersion = $env:appveyor_build_version
16+
$env:IsGithubRelease = ""
17+
}
18+
19+
Write-Host "Build Version: " $env:BuildVersion
20+
21+
Write-Host "appveyor_build_version Variable: " $env:appveyor_build_version
22+
assembly_info:
23+
patch: true
24+
file: '**\AssemblyInfo.*'
25+
assembly_version: $(BuildVersion)
26+
assembly_file_version: $(BuildVersion)
27+
assembly_informational_version: $(BuildVersion)
28+
nuget:
29+
account_feed: true
30+
project_feed: true
31+
before_build:
32+
- nuget restore ColorCat.sln
33+
34+
build:
35+
project: ColorCat.sln
36+
publish_nuget: true
37+
publish_nuget_symbols: true
38+
verbosity: minimal
39+
40+
# Skip chocolatey for now
41+
# after_build:
42+
# - cpack ColorCat\Chocolatey\package.nuspec --version %BuildVersion%
43+
44+
artifacts:
45+
- path: ColorCat\bin\$(configuration)\ColorCat.exe
46+
- path: '*.nupkg'
47+
name: package
48+
deploy:
49+
- provider: GitHub
50+
auth_token:
51+
secure: zBj7kH3ngT1v5Bh9HfJFLO44yBrwJ55KhsWWv6zgkSrrBrIvkJq/0h/unEThGYIg
52+
artifact:
53+
prerelease: false
54+
on:
55+
branch: master
56+
IsGithubRelease: true
57+
- provider: NuGet
58+
server: https://chocolatey.org/
59+
api_key:
60+
secure: 2Uqi8iUyKSHUakCSDeJb+qeXjn8i87F2U9RRmQIsqz4HOSycTjhat5AxHNs0yJ4g
61+
artifact: package
62+
on:
63+
branch: master
64+
IsGithubRelease: true

0 commit comments

Comments
 (0)