2020-04-24 14:19:14 +02:00
|
|
|
clean:
|
|
|
|
rm -rf dist/
|
|
|
|
|
2020-04-14 08:40:52 +02:00
|
|
|
build:
|
2020-05-05 00:58:20 +02:00
|
|
|
go build -v -o dist/docker-ecs cmd/main/main.go
|
2020-04-14 08:40:52 +02:00
|
|
|
|
2020-05-05 23:33:54 +02:00
|
|
|
test: build ## Run tests
|
2020-04-14 08:40:52 +02:00
|
|
|
go test ./... -v
|
|
|
|
|
2020-05-19 11:49:58 +02:00
|
|
|
e2e: build ## Run tests
|
|
|
|
go test ./... -v -tags=e2e
|
|
|
|
|
2020-04-14 08:40:52 +02:00
|
|
|
dev: build
|
|
|
|
ln -f -s "${PWD}/dist/docker-ecs" "${HOME}/.docker/cli-plugins/docker-ecs"
|
|
|
|
|
2020-04-28 10:47:03 +02:00
|
|
|
lint: ## Verify Go files
|
|
|
|
golangci-lint run --config ./golangci.yaml ./...
|
|
|
|
|
2020-05-19 11:49:58 +02:00
|
|
|
.PHONY: clean build test dev lint e2e
|