Skip to content

Commit

Permalink
Merge pull request #446 from networkop/add-makefile
Browse files Browse the repository at this point in the history
Added basic makefile
  • Loading branch information
hellt committed Jun 13, 2021
2 parents 7a08664 + 6a4ade8 commit b6d5b5a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
BIN_DIR = $(shell pwd)/bin
BINARY = $(shell pwd)/bin/containerlab

all: build

build:
mkdir -p $(BIN_DIR)
go build -o $(BINARY) main.go

test:
go test -race ./... -v

lint:
golangci-lint run

clint:
docker run -it --rm -v $$(pwd):/app -w /app golangci/golangci-lint:v1.40.1 golangci-lint run -v

0 comments on commit b6d5b5a

Please sign in to comment.