forked from aliyun/aliyun-openapi-net-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
30 lines (30 loc) · 912 Bytes
/
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
version: "1.0.{build}"
image:
- Visual Studio 2015
- Visual Studio 2017
branches:
only:
- master
init:
- cmd: git config --global core.autocrlf true
install:
# Install Proxy
- npm install o_o -g
- cmd: dotnet --version
- cmd: dotnet tool install --global altcover.visualizer
- cmd: cd aliyun-net-sdk-core.Tests/ && dotnet add package AltCover && cd ../
build_script:
- cmd: dotnet restore
- cmd: dotnet build
test_script:
# Start Proxy
- ps: Start-Process -FilePath o_o -NoNewWindow
# Dotnet Test
- dotnet build
- IF NOT DEFINED ACCESS_KEY_ID (dotnet test aliyun-net-sdk-core.Tests /p:AltCover=true) ELSE (dotnet test /p:AltCover=true)
on_finish:
- cmd: cd aliyun-net-sdk-core.Tests
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -f "coverage.xml" -c -F unittest