diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 00000000..a222a294 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,33 @@ +build: off + +clone_folder: c:\gopath\src\github.com\thrasher-\gocryptotrader + +environment: + GOPATH: c:\gopath + GO111MODULE: on + NODEJS_VER: 10.15.3 + +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-\gocryptotrader\web + - npm install + +before_test: + - cd c:\gopath\src\github.com\thrasher-\gocryptotrader + - go get + +test_script: + # test back-end + - go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.15.0 + - '%GOPATH%\bin\golangci-lint.exe run --verbose' + - go test -race ./... + + # test front-end + - node --version + - npm --version + - cd c:\gopath\src\github.com\thrasher-\gocryptotrader\web + - npm run lint + - npm run build diff --git a/config/config.go b/config/config.go index 6a899b62..4265d0f6 100644 --- a/config/config.go +++ b/config/config.go @@ -15,8 +15,8 @@ import ( "sync" "time" - "github.com/thrasher-/gocryptotrader/connchecker" "github.com/thrasher-/gocryptotrader/common" + "github.com/thrasher-/gocryptotrader/connchecker" "github.com/thrasher-/gocryptotrader/currency" "github.com/thrasher-/gocryptotrader/currency/forexprovider" "github.com/thrasher-/gocryptotrader/currency/forexprovider/base"