forked from thrasher-corp/gocryptotrader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
45 lines (37 loc) · 1.12 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
build: off
clone_folder: c:\gopath\src\github.com\thrasher-corp\gocryptotrader
cache:
- '%APPDATA%\npm-cache'
- '%GOPATH%\pkg\mod'
- '%LOCALAPPDATA%\go-build'
- c:\gopath\src\github.com\thrasher-corp\gocryptotrader\web\node_modules
environment:
GOPATH: c:\gopath
GO111MODULE: on
NODEJS_VER: 10.15.3
APPVEYOR_SAVE_CACHE_ON_ERROR: true
stack: go 1.13.x
install:
- set Path=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%Path%
- ps: Install-Product node $env:NODEJS_VER
- cd c:\gopath\src\github.com\thrasher-corp\gocryptotrader\web
- npm install
before_test:
- cd c:\gopath\src\github.com\thrasher-corp\gocryptotrader
- go get
test_script:
# test back-end
- go get github.com/golangci/golangci-lint/cmd/[email protected]
- '%GOPATH%\bin\golangci-lint.exe run --verbose'
- ps: >-
if($env:APPVEYOR_SCHEDULED_BUILD -eq 'true') {
go test -race ./... -tags=mock_test_off
}else {
go test -race ./...
}
# test front-end
- node --version
- npm --version
- cd c:\gopath\src\github.com\thrasher-corp\gocryptotrader\web
- npm run lint
- npm run build