Skip to content

Commit

Permalink
Remove JS test and linting from Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkw31 committed Aug 22, 2024
1 parent 3c4d647 commit 46aa7d5
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,17 @@ default: install

build: export CGO_ENABLED = 1
build:
@cd server/static/wrstat; npm install && npm run build:prod
go build -tags netgo ${LDFLAGS}

buildnonpm: export CGO_ENABLED = 1
buildnonpm:
go build -tags netgo ${LDFLAGS}

install: export CGO_ENABLED = 1
install:
@rm -f ${GOPATH}/bin/wrstat
@cd server/static/wrstat; npm install && npm run build:prod
@echo Starting go install
@go install -tags netgo ${LDFLAGS}
@echo Installed to ${GOPATH}/bin/wrstat

installnonpm: export CGO_ENABLED = 1
installnonpm:
@rm -f ${GOPATH}/bin/wrstat
@go install -tags netgo ${LDFLAGS}
@echo installed to ${GOPATH}/bin/wrstat

test: export CGO_ENABLED = 1
test:
@cd server/static/wrstat; npm install && CI= npm run build:prod
@go test -tags netgo --count 1 ./...
@cd server/static/wrstat; CI=1 npm test

race: export CGO_ENABLED = 1
race:
Expand All @@ -51,7 +36,6 @@ bench:
# curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.1
lint: export CGO_ENABLED = 1
lint:
@cd server/static/wrstat; npm install && CI= npm run lint || true
@golangci-lint run --timeout 2m
# remove the || true when you get round to removing all anys

Expand Down

0 comments on commit 46aa7d5

Please sign in to comment.