-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16c9fef
commit 3e350f4
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
test-config/ | ||
./keenetic-pbr | ||
./keenetic-pbr | ||
bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
PKG_VERSION:=1.0.0 | ||
PKG_RELEASE:=1 | ||
PKG_FULLVERSION:=$(PKG_VERSION)-$(PKG_RELEASE) | ||
|
||
BINARY_NAME=keenetic-pbr | ||
|
||
build: | ||
GOARCH=amd64 GOOS=linux go build -o bin/${BINARY_NAME}-linux-amd64 main.go | ||
|
||
run: build | ||
./bin/${BINARY_NAME} | ||
|
||
clean: | ||
go clean | ||
rm ./bin/${BINARY_NAME}-linux-amd64 | ||
|
||
test: | ||
go test ./... | ||
|
||
test_coverage: | ||
go test ./... -coverprofile=coverage.outg | ||
|
||
dep: | ||
go mod download | ||
|
||
vet: | ||
go vet | ||
|
||
lint: | ||
golangci-lint run --enable-all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters