Skip to content

Instantly share code, notes, and snippets.

View FeodorFitsner's full-sized avatar
🐢
Working on something new

Feodor Fitsner FeodorFitsner

🐢
Working on something new
View GitHub Profile
@FeodorFitsner
FeodorFitsner / appveyor.yml
Created April 16, 2014 03:08
appveyor.yml reference
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
@FeodorFitsner
FeodorFitsner / appveyor.yml
Last active September 22, 2016 04:15
Minimal appveyor.yml for .NET project
configuration: Release
# enable AssemblyInfo.cs patching with build version number
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
@FeodorFitsner
FeodorFitsner / appveyor.yml
Last active March 12, 2021 13:24
appveyor.yml reference
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
@FeodorFitsner
FeodorFitsner / download-appvyr-artifacts.ps1
Created December 13, 2014 03:51
Downloading AppVeyor build artifacts (PowerShell)
$apiUrl = 'https://ci.appveyor.com/api'
$token = '<your-api-token>'
$headers = @{
"Authorization" = "Bearer $token"
"Content-type" = "application/json"
}
$accountName = '<your-account-name>'
$projectSlug = '<your-project-slug>'
$downloadLocation = 'C:\projects'
@FeodorFitsner
FeodorFitsner / appveyor-subversion-webhook-payload.json
Last active October 28, 2015 18:29
AppVeyor Subversion webhook payload
{
"commit": {
"id":"5",
"author":{
"name":"Author Name",
"email":"author@email.com"
},
"timestamp":"2015-01-15T21:08:38-08:00",
"message":"commit message"
},
@FeodorFitsner
FeodorFitsner / appveyor-attachdb-sql.ps1
Created February 14, 2015 01:37
Attaching MDF file with existing SQL Server database on AppVeyor and updating configuration connection string
$startPath = "$($env:appveyor_build_folder)\path-to-your-bin"
$sqlInstance = "(local)\SQL2012SP1"
$dbName = "MyDatabase"
# replace the db connection with the local instance
$config = join-path $startPath "MyTests.dll.config"
$doc = (gc $config) -as [xml]
$doc.SelectSingleNode('//connectionStrings/add[@name="store"]').connectionString = "Server=$sqlInstance; Database=$dbName; Trusted_connection=true"
$doc.Save($config)
@FeodorFitsner
FeodorFitsner / package-wap-push-artifacts.cmd
Last active April 23, 2016 21:33
Package WAP to Web Deploy package and pushing to artifacts
msbuild WebApp\WebApp.csproj /T:Package /P:PackageLocation="%APPVEYOR_BUILD_FOLDER%\WebApp.zip"
appveyor PushArtifact WebApp.zip -Type WebDeployPackage -DeploymentName WebApp
@FeodorFitsner
FeodorFitsner / install-redis.com
Created March 26, 2015 19:17
Installing and running Redis as a service
nuget install redis-64 -excludeversion
redis-64\redis-server.exe --service-install
redis-64\redis-server.exe --service-start
@FeodorFitsner
FeodorFitsner / install-vsix-appveyor.ps1
Created June 27, 2015 19:57
Installing VSIX extension from command line
$vsixPath = "$($env:USERPROFILE)\sqlite-wp81-winrt-3081002.vsix"
(New-Object Net.WebClient).DownloadFile('https://visualstudiogallery.msdn.microsoft.com/5d97faf6-39e3-4048-a0bc-adde2af75d1b/file/132406/15/sqlite-wp81-winrt-3081002.vsix', $vsixPath)
"`"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\VSIXInstaller.exe`" /q /a $vsixPath" | out-file ".\install-vsix.cmd" -Encoding ASCII
& .\install-vsix.cmd
@FeodorFitsner
FeodorFitsner / install-typescript-1.5beta.ps1
Created June 27, 2015 19:58
Installing TypeScript 1.5 beta for VS 2013 from command line
$exePath = "$($env:USERPROFILE)\TypeScript_15beta_Dev12.exe"
(New-Object Net.WebClient).DownloadFile('https://visualstudiogallery.msdn.microsoft.com/107f89a0-a542-4264-b0a9-eb91037cf7af/file/160654/1/TypeScript_15beta_Dev12.exe', $exePath)
cmd /c start /wait $exePath /quiet