forked from snowflakedb/snowflake-connector-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
37 lines (30 loc) · 1.44 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
version: '{branch}-{build}'
configuration: Debug
platform: Any CPU
image: Visual Studio 2017
environment:
my_secret:
secure: wCQetQvPT4ZLs/RkRfze5yPhzstxdyBV/G8EoptCL8Y=
install:
- nuget install secure-file -ExcludeVersion
- secure-file\tools\secure-file -decrypt Snowflake.Data.Tests\parameters.json.enc -secret %my_secret%
before_build:
- cmd: dotnet restore
build_script:
- cmd: dotnet build snowflake-connector-net.sln /p:DebugType=Full
before_test:
- cmd: nuget install OpenCover -Version 4.6.519
test_script:
- cmd: cd Snowflake.Data.Tests
# test against .net core 2.0
- cmd: ..\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:"dotnet.exe" -returntargetcode -targetargs:"test -f netcoreapp2.0 -v n" -register:user -filter:"+[Snowflake.Data]*" -output:"netcoreapp2.0_coverage.xml" -oldStyle
# test against .net framework 4.6
- cmd: ..\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:"dotnet.exe" -returntargetcode -targetargs:"test -f net46 -v n" -register:user -filter:"+[Snowflake.Data]*" -output:"net46_coverage.xml" -oldStyle
after_test:
- cd ..
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f Snowflake.Data.Tests\netcoreapp2.0_coverage.xml Snowflake.Data.Tests\net46_coverage.xml -t ffc6a21d-8176-4849-9047-e3a631dcd35a
artifacts:
- path: 'Snowflake.Data.Tests\bin\${platform}\${configuration}\*\*.log'
- path: 'Snowflake.Data.Tests\*_coverage.xml'