forked from aliyun/aliyun-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
32 lines (22 loc) · 1.13 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
# Build worker image (VM template)
build: off
image: Visual Studio 2019
# clone directory
clone_folder: C:\Users\appveyor\go\src\github.com\aliyun\aliyun-cli
stack: go 1.16
# scripts that run after cloning repository
install:
# by default, all script lines are interpreted as batch
- cmd: git submodule update --init --recursive
- cmd: set path=%path%;C:\Users\appveyor\go\bin
- cmd: set VERSION=3.0.0-beta
- cmd: go build -ldflags "-X 'github.com/aliyun/aliyun-cli/cli.Version=%VERSION%'" -o C:\Users\appveyor\go\bin\aliyun.exe main/main.go
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: x64
test_script:
- ps: >-
go vet ./cli/... ./config/... ./i18n/... ./main/... ./openapi/... ./oss/... ./resource/...
go test -covermode=atomic ./cli/... ./config/... ./i18n/... ./meta/... ./main/... ./openapi/... ./resource/...
$client = new-object System.Net.WebClient
$client.DownloadFile('https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe', 'C:/go/bin/jq.exe')
if (-not $env:ACCESS_KEY_ID.length -eq 0 -and -not $env:ACCESS_KEY_SECRET.length -eq 0){./integration/ecs_test.PS1}