-
Notifications
You must be signed in to change notification settings - Fork 3
/
.appveyor.yml
88 lines (77 loc) · 1.67 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
build: script
shallow_clone: true
skip_tags: true
environment:
TZ: Asia/Shanghai
GO15VENDOREXPERIMENT: 1
GO111MODULE: on
install:
- uname -a
- go version
- go env
- gcc --version
build_script:
- go mod tidy || true
- go build -v -ldflags="-s -w"
after_build:
- du emu-log
test_script:
- go vet ./...
- go test -v -cover ./...
stack:
- go 1.10
- go 1.14
- go 1.19
image:
- MacOS
- Ubuntu
- Visual Studio 2019
matrix:
exclude:
- image: MacOS
stack: go 1.10
- image: Visual Studio 2019
stack: go 1.10
- image: Visual Studio 2019
stack: go 1.14
for:
- matrix:
only:
- image: MacOS
stack: go 1.19
init:
- gvm install go1.19 --binary
before_build:
- sw_vers
before_test:
- sudo systemsetup -settimezone $TZ
test_script:
- go test -covermode=count -coverprofile=coverage.txt ./...
on_success:
- curl -fsSL https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --import --no-default-keyring --keyring trustedkeys.gpg
- curl -fsSL --remote-name-all https://uploader.codecov.io/latest/macos/codecov{,.SHA256SUM{,.sig}}
- gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
- shasum -a 256 -c codecov.SHA256SUM
- chmod +x codecov
- ./codecov
- matrix:
only:
- image: Ubuntu
clone_folder: '$HOME/go/src/github.com/arnie97/emu-log'
init:
- gvm install go1.10 --binary
before_build:
- lsb_release -a
- export GOPATH=$HOME/go
- (gvm use go1.14 && go mod vendor)
- matrix:
only:
- image: Visual Studio 2019
clone_folder: 'c:\go\src\github.com\arnie97\emu-log'
environment:
GOPATH: 'c:\go'
PATH: 'c:\msys64\mingw64\bin;c:\msys64\bin;%PATH%'
before_build:
- ver
before_test:
- tzutil /s "China Standard Time"