-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (28 loc) · 789 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
34
35
36
37
38
39
usage:
@echo ""
@echo "Task : Description"
@echo "----------------- : -------------------"
@echo "make install : Install all necessary dependencies"
@echo "make build : Generate production build for current OS"
@echo "make test : Execute unit test suite"
@echo ""
VERSION = "1.0.0"
install:
cp bin/contributions $$DESTDIR
build:
go get -v -t -d ./...
go build -o bin/contributions cmd/*
docker:
@docker build -t cloud.canister.io:5000/bastiao/contributions:$(VERSION) .
publish:
@docker push cloud.canister.io:5000/bastiao/contributions:$(VERSION)
run:
go run cmd/*.go $$PHA_ARGS
test:
go test cmd/*.go
go test sourceCode/*.go
go test config/*.go
go test jenkins/*.go
go test sourceCode/*.go
clean:
rm -rf bin/*