Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (24 sloc) 859 Bytes
version: 1.0.{build}
image: Visual Studio 2017
environment:
EnableNuGetPackageRestore: true
services: mssql2016
before_build:
- cmd: nuget restore Fundraise.sln
build:
verbosity: minimal
before_test:
- ps: >-
$startPath = "$($env:appveyor_build_folder)\Fundraise.MvcExample"
$sqlInstance = "(local)\SQL2016"
$dbName = "Fundraise"
$config = join-path $startPath "Web.config"
$doc = (gc $config) -as [xml]
$doc.SelectSingleNode('//connectionStrings/add[@name="DefaultConnection"]').connectionString = "Server=$sqlInstance; Database=$dbName; Trusted_connection=true"
$doc.Save($config)
sqlcmd -S "$sqlInstance" -Q "Use [master]; CREATE DATABASE [$dbName]"
artifacts:
- path: Fundraise.MvcExample.Tests\bin\Debug\*.png
name: '*.png'
on_failure:
- cmd: appveyor PushArtifact Fundraise.MvcExample.Tests\bin\Debug\*.png