Skip to content

Commit f3989ac

Browse files
jaenyphhazzik
authored andcommitted
Make some adaptations for AppVeyor to pass (#111)
1 parent b00eb62 commit f3989ac

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

appveyor.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
image: Visual Studio 2017
2+
3+
services:
4+
- mssql2014
5+
6+
build_script:
7+
- build.cmd
8+
9+
before_build:
10+
- dotnet restore
11+
12+
test_script:
13+
- test.cmd
14+
15+
# replace the db connection with the local instance :
16+
before_test:
17+
- ps: >-
18+
$config = join-path (Resolve-Path .\).Path '.\src\DelegateDecompiler.EntityFramework.Tests\App.config';
19+
$doc = (gc $config) -as [xml];
20+
$doc.SelectSingleNode('//connectionStrings/add[@name="DelegateDecompilerEfTestDb"]').connectionString = "Server=(local)\\SQL2014;Database=DelegateDecompilerEfTestDb;MultipleActiveResultSets=True;User ID=sa;Password=Password12!";
21+
$doc.Save($config);

build.bat

Lines changed: 0 additions & 1 deletion
This file was deleted.

build.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dotnet msbuild DelegateDecompiler.sln /p:Configuration=Release

test.cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
nunit3-console ^
2+
src\DelegateDecompiler.Tests\bin\Release\net40\DelegateDecompiler.Tests.dll ^
3+
src\DelegateDecompiler.Tests.VB\bin\Release\net40\DelegateDecompiler.Tests.VB.dll ^
4+
src\DelegateDecompiler.EntityFramework.Tests\bin\Release\net45\DelegateDecompiler.EntityFramework.Tests.dll ^
5+
--result=DelegateDecompiler.testsresults.xml;format=AppVeyor

0 commit comments

Comments
 (0)