forked from pglet/pglet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
148 lines (120 loc) · 2.77 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
skip_branch_with_pr: true
environment:
GO_VERSION: 1.15.3
GO_TAGS: --tags release
GITHUB_TOKEN:
secure: eiUu4bDjW+iunm/q1LsDOIBF3EOAZBRynjMztjPDwFOTDivVlYlSPvfjlQY3+Qd9
matrix:
- job_name: Windows
job_group: tests
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- job_name: Linux
job_group: tests
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
- job_name: macOS
job_group: tests
APPVEYOR_BUILD_WORKER_IMAGE: macOS
- job_name: Release
job_depends_on: tests
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
matrix:
fast_finish: true
for:
# ======================================
# Windows
# ======================================
-
matrix:
only:
- job_name: Windows
install:
- ps: .\install_go.ps1
- set GOPATH=%USERPROFILE%\go
- set PATH=%GOPATH%\bin;%PATH%
- echo %GOPATH%
- echo %GOROOT%
build_script:
- ps: Install-Product node 12 x64
- cd client
- yarn
- yarn build
- cd ..
- go get -u github.com/jteeuwen/go-bindata/...
- go-bindata -o internal/server/bindata.go --pkg server client/build/...
- .\build.cmd
- dir %USERPROFILE%\Go\bin
test_script:
- run-tests.cmd
# ======================================
# Linux
# ======================================
-
matrix:
only:
- job_name: Linux
install:
- ./install_go.sh
build_script:
- nvm use 12
- cd client
- yarn
- yarn build
- cd ..
- go get -u github.com/jteeuwen/go-bindata/...
- go-bindata -o internal/server/bindata.go --pkg server client/build/...
- ./build.sh
- ls $GOPATH/bin
test_script:
- ./run-tests.sh
# ======================================
# macOS
# ======================================
-
matrix:
only:
- job_name: macOS
install:
- ./install_go.sh
- HOMEBREW_NO_AUTO_UPDATE=1 brew install yarn
build_script:
- nvm use 14
- cd client
- yarn
- yarn build
- cd ..
- go get -u github.com/jteeuwen/go-bindata/...
- go-bindata -o internal/server/bindata.go --pkg server client/build/...
- ./build.sh
- ls $GOPATH/bin
test_script:
- ./run-tests.sh
# ======================================
# Release
# ======================================
-
matrix:
only:
- job_name: Release
install:
- ./install_go.sh
- sh: |
sudo snap install --classic goreleaser
goreleaser --version
build_script:
- nvm use 12
- cd client
- yarn
- GENERATE_SOURCEMAP=false yarn build
- ls -alR build
- cd ..
- go get -u github.com/jteeuwen/go-bindata/...
- go-bindata -o internal/server/bindata.go --pkg server client/build/...
- sh: |
if [[ "$APPVEYOR_REPO_TAG" == "true" ]]; then
goreleaser
else
goreleaser --snapshot --skip-publish
fi
artifacts:
- path: dist/pglet-*
test: off