From 49547cc3b80b4caddd014e880a65167fc61f2b68 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 6 Sep 2019 08:35:35 +0900 Subject: [PATCH] Improved tests --- .drone.yml | 11 +++++++---- makefile | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9682ee65..33f7bc42 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,16 +3,19 @@ name: default steps: - name: test - image: animenotifier/notify.moe + image: golang environment: GO111MODULE: on ARN_ROOT: /drone/src commands: - go version - go mod download - - tsc - - pack - - go build -v + - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash + - nvm install node + - npm install -g typescript + - make tools + - make assets + - make server - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1 - golangci-lint run - go test -v -coverprofile=coverage.txt . diff --git a/makefile b/makefile index 7bdbb5de..a98584c7 100644 --- a/makefile +++ b/makefile @@ -23,7 +23,7 @@ endif # Build targets server: - @go build + @go build -v deps: go mod download jobs: