-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from Luzilla/adhoc-prober
Update: implement an adhoc scraper
- Loading branch information
Showing
19 changed files
with
422 additions
and
196 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
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
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
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,19 +1,15 @@ | ||
GO_VERSION:=1.16 | ||
|
||
.PHONY: build | ||
build: | ||
goreleaser build --snapshot --single-target --rm-dist | ||
goreleaser build --snapshot --single-target --clean | ||
|
||
.PHONY: run-dev | ||
run-dev: | ||
go run dnsbl_exporter.go --log.debug | ||
|
||
.PHONY: snapshot | ||
snapshot: | ||
goreleaser build --snapshot --rm-dist | ||
goreleaser build --snapshot --clean | ||
|
||
.PHONY: test | ||
test: | ||
docker run \ | ||
-it \ | ||
--rm \ | ||
-v $(CURDIR):/src/github.com/Luzilla/dnsbl_exporter \ | ||
-w /src/github.com/Luzilla/dnsbl_exporter \ | ||
golang:$(GO_VERSION) \ | ||
sh -c "go mod download && go test ./..." | ||
act "pull_request" -j test |
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
Oops, something went wrong.