forked from aliyun/aliyun-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
31 lines (22 loc) · 1.38 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
# Build worker image (VM template)
build: off
# clone directory
clone_folder: C:\Users\appveyor\go\src\github.com\aliyun\aliyun-cli
# scripts that run after cloning repository
install:
# by default, all script lines are interpreted as batch
- cmd: git clone -q --branch=master https://github.com/aliyun/aliyun-openapi-meta.git C:\Users\appveyor\go\src\github.com\aliyun\aliyun-openapi-meta
- cmd: set path=%path%;C:\Users\appveyor\go\bin
- cmd: set VERSION=3.0.39
- cmd: go get -u github.com/jteeuwen/go-bindata/...
- cmd: go-bindata -o resource/metas.go -pkg resource -prefix ../aliyun-openapi-meta ../aliyun-openapi-meta/...
- 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/... ./command/... ./config/... ./i18n/... ./main/... ./openapi/... ./oss/... ./resource/...
go test -covermode=atomic ./cli/... ./command/... ./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}