-
Notifications
You must be signed in to change notification settings - Fork 74
/
config.yml
79 lines (72 loc) · 2.28 KB
/
config.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
70
71
72
73
74
75
76
77
78
79
version: 2.1
orbs:
win: circleci/[email protected]
workflows:
hello-world:
jobs:
- build
integration-tests:
jobs:
- browser-tests
- ui-tests
jobs:
build:
executor:
name: win/default
working_directory: C:\Users\circleci\project\HelloWorld
steps:
- checkout:
path: C:\Users\circleci\project
- restore_cache:
keys:
- dotnet-packages-v1-{{ checksum "circleci-demo-windows.csproj" }}
- run:
name: "Install project dependencies"
command: dotnet.exe restore
- save_cache:
paths:
- C:\Users\circleci\project\HelloWorld\.nuget\packages
key: dotnet-packages-v1-{{ checksum "circleci-demo-windows.csproj" }}
- run:
name: "Run Build step"
command: dotnet.exe publish -c Release -r win10-x64
- run:
name: "Test the executable"
command: .\bin\Release\netcoreapp2.1\win10-x64\publish\circleci-demo-windows.exe
- store_artifacts:
path: .\bin\Release\netcoreapp2.1\win10-x64\publish\circleci-demo-windows.exe
browser-tests:
executor:
name: win/default
steps:
- checkout
- run:
name: Run browser tests
command: |
cd WebBrowserTestsSample/tests/WebBrowserTests
dotnet test
ui-tests:
executor:
name: win/default
shell: powershell.exe
steps:
- checkout
- run: choco install winappdriver
- run:
name: Run winappdriver in background
background: true
command: |
cd "C:\Program Files (x86)\Windows Application Driver\"
Start-Process -FilePath "WinAppDriver.exe" -Wait
- run:
name: Restore and build
command: |
cd NotepadTest
nuget restore
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\msbuild\current\bin\"
.\msbuild.exe "C:\Users\circleci\project\NotepadTest\NotepadTest.csproj"
- run:
name: Run UI tests
command: |
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\common7\ide\extensions\TestPlatform"
.\vstest.console.exe C:\Users\circleci\project\NotepadTest\bin\debug\NotepadTest.dll