Makefile 412 B

1234567891011121314151617181920
  1. clean:
  2. rm -rf dist/
  3. build:
  4. go build -v -o dist/docker-ecs cmd/main/main.go
  5. test: build ## Run tests
  6. go test ./... -v
  7. e2e: build ## Run tests
  8. go test ./... -v -tags=e2e
  9. dev: build
  10. @mkdir -p ~/.docker/cli-plugins/
  11. ln -f -s "${PWD}/dist/docker-ecs" "${HOME}/.docker/cli-plugins/docker-ecs"
  12. lint: ## Verify Go files
  13. golangci-lint run --config ./golangci.yaml ./...
  14. .PHONY: clean build test dev lint e2e