-
Notifications
You must be signed in to change notification settings - Fork 6
/
.appveyor.yml
40 lines (32 loc) · 1009 Bytes
/
.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
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.12.3
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'
- 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