-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
33 lines (25 loc) · 851 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
VERSION=0.2.1
all: lint test
build:
@go build
lint:
@go fmt ./...
@golint ./...
test: test-src test-cli
test-src:
@go test ./...
test-cli: build
@./htmltable2csv -v
@./htmltable2csv -source "./scraper/fixture/test1.html" -selector "table > tbody > tr" -csv data_file.csv
@./htmltable2csv -source "https://www.w3schools.com/html/html_tables.asp" -selector "#customers > tbody > tr" -csv data_url.csv
release:
git tag -a v${VERSION} -m "Version ${VERSION}"
git push origin v${VERSION}
goreleaser --rm-dist
release-dry:
goreleaser --skip-publish --skip-validate --snapshot
clean:
@rm -rf htmltable2csv dist
changelog:
./node_modules/.bin/auto-changelog -p --template keepachangelog --breaking-pattern breaking && git add CHANGELOG.md
.PHONY: all lint build test test-all test-cli release release-dry changelog