forked from snowflakedb/libsnowflakeclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
58 lines (49 loc) · 1.57 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
platform:
- x64
- x86
environment:
global:
my_secret:
secure: 2C4ZZBPcUCQzpU6eH4S/3KLqe73LrUdYzetitAKZacc=
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VSVER: 14
SNOWFLAKE_CLOUD_ENV: AWS
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VSVER: 15
SNOWFLAKE_CLOUD_ENV: AZURE
matrix:
fast_finish: true
exclude:
- platform: x86
VSVER: 15
SNOWFLAKE_CLOUD_ENV: AZURE
install:
- nuget install secure-file -ExcludeVersion
- choco install jq
- secure-file\tools\secure-file -decrypt parameters.appveyor.json.enc -secret %my_secret% -out parameters.appveyor.json
before_build:
- ps: >-
If ($env:Platform -Match "x86") {
$env:VCVARS_PLATFORM="x86"
} Else {
$env:VCVARS_PLATFORM="x64"
}
- ps: >-
If ($env:VSVER -Match "15") {
$env:VSINIT="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat"
} Else {
$env:VSINIT="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
}
- echo "%VSINIT%"
- call "%VSINIT%" %VCVARS_PLATFORM%
build_script:
# 4rd argument is enable dynamic runtime, 5th argument is to enable building tests
- .\scripts\build_libsnowflakeclient.bat %VCVARS_PLATFORM% Release VS%VSVER% ON ON
test_script:
- C:\Python36-x64\python -m venv env
- call env\Scripts\activate
- python -m pip install --upgrade pip
- pip --version
- pip install -U snowflake-connector-python
- .\scripts\run_tests.bat %VCVARS_PLATFORM% Release VS%VSVER%