-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathappveyor.yml
69 lines (49 loc) · 2.37 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
image:
- Visual Studio 2017
- Ubuntu
version: 1.7.1.{build}
configuration: Release
skip_branch_with_pr: true
install:
- git submodule update --init --recursive
assembly_info:
patch: true
file: Sources\AssemblyInfoCommon.cs;
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
build_script:
- ps: |
dotnet build Sources/PT.PM.sln -c Release
dotnet publish Sources/PT.PM.Cli/PT.PM.Cli.csproj -c Release -o ../../bin/Cli/netcoreapp2.1 -f netcoreapp2.1
dotnet publish Sources/PT.PM.PatternEditor/PT.PM.PatternEditor.csproj -c Release -o ../../bin/Gui/netcoreapp2.1 -f netcoreapp2.1
if ($isWindows) {
dotnet publish Sources/PT.PM.Cli/PT.PM.Cli.csproj -c Release -o ../../bin/Cli/net472 -f net472
dotnet publish Sources/PT.PM.PatternEditor/PT.PM.PatternEditor.csproj -c Release -o ../../bin/Gui/net472 -f net472
}
test_script:
- ps: |
cd Tests/Release/netcoreapp2.1
dotnet vstest PT.PM.Cli.Tests.dll PT.PM.CSharpParseTreeUst.Tests.dll PT.PM.Dsl.Tests.dll PT.PM.JavaParseTreeUst.Tests.dll PT.PM.JavaScriptParseTreeUst.Tests.dll PT.PM.Matching.Tests.dll PT.PM.PhpParseTreeUst.Tests.dll PT.PM.SqlParseTreeUst.Tests.dll PT.PM.Tests.dll --logger:nunit
cd ../../..
if ($isWindows) {
nunit3-console Tests/Release/net472/PT.PM.Net.Tests.dll
}
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit/$env:APPVEYOR_JOB_ID", (Resolve-Path ./Tests/Release/netcoreapp2.1/TestResults/TestResults.xml))
after_test:
- ps: |
cd bin/Cli/netcoreapp2.1
7z a PT.PM.Cli-netcoreapp2.1-$env:APPVEYOR_BUILD_VERSION.zip *.dll *.config *.json runtimes
Push-AppveyorArtifact PT.PM.Cli-netcoreapp2.1-$env:APPVEYOR_BUILD_VERSION.zip
cd ../../Gui/netcoreapp2.1
7z a PT.PM.Gui-netcoreapp2.1-$env:APPVEYOR_BUILD_VERSION.zip *.dll *.config *.json runtimes
Push-AppveyorArtifact PT.PM.Gui-netcoreapp2.1-$env:APPVEYOR_BUILD_VERSION.zip
if ($isWindows) {
cd ../../Cli/net472
7z a PT.PM.Cli-net472-$env:APPVEYOR_BUILD_VERSION.zip *.exe *.dll *.config
Push-AppveyorArtifact PT.PM.Cli-net472-$env:APPVEYOR_BUILD_VERSION.zip
cd ../../Gui/net472
7z a PT.PM.Gui-net472-$env:APPVEYOR_BUILD_VERSION.zip *.exe *.dll *.config
Push-AppveyorArtifact PT.PM.Gui-net472-$env:APPVEYOR_BUILD_VERSION.zip
}