-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
31 lines (23 loc) · 781 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
invoice_path ?= $(HOME)/Downloads/Fatura-Excel.xls
build:
go build -v ./...
test:
go test -race ./...
lint:
golangci-lint run -v --fix ./...
run-invoice-itau-consumer:
go run cmd/main.go --file $(invoice_path)
up-unoconv:
docker buildx build -t unoconv .
docker run -d --name unoconv unoconv
down-unoconv:
docker container stop unoconv
docker container rm unoconv
run-unoconv:
docker exec unoconv unoconvert organizze-entries.xlsx organizze-entries-to-import.xls --convert-to xls
docker cp unoconv:/organizze-entries-to-import.xls .
run: run-invoice-itau-consumer up-unoconv
sleep 3
docker exec unoconv unoconvert organizze-entries.xlsx organizze-entries-to-import.xls --convert-to xls
docker cp unoconv:/organizze-entries-to-import.xls .
$(MAKE) down-unoconv