-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
66 lines (52 loc) · 1.43 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
version: 1.0.{build}
image: Visual Studio 2017
environment:
matrix:
- CLI_VERSION: Latest
build:
verbosity: minimal
parallel: true
project: SwitchFunc.sln
branches:
only:
- master
init:
# Good practise, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
# Build worker image (VM template)
deploy: off
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
build_script:
# dotnet info
- ps: dotnet --info
# Run dotnet new
- ps: mkdir "test\test-dotnet-new" -Force | Push-Location
- ps: dotnet new console -lang c#
- ps: dotnet restore
- ps: dotnet build
- ps: dotnet run a b
- ps: Pop-Location
# scripts to run before tests (working directory and environment changes are persisted from the previous steps such as "before_build")
before_test:
- cmd: dotnet --version
- cmd: echo IT HAS BEGUN
- cmd: dotnet --info
# to run your custom scripts instead of automatic tests
test_script:
- cmd: echo This is my custom test script
- cmd: cd SwitchTest
- cmd: nuget install Appveyor.TestLogger -Version 2.0.0
- cmd: dotnet test
#- cmd: dotnet test ./SwitchTest
# scripts to run after tests
after_test:
- cmd: echo THIS IS IT