forked from magicsong/sonargo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (16 loc) · 910 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package_name=sonargo
work_dir=sonar
init-clean:
rm -f ${work_dir}/*.go
rm -rf integration_testing
echo "package $(package_name)"> ${work_dir}/doc.go
update: init-clean
dep ensure -v -update
go run vendor/github.com/magicsong/generate-go-for-sonarqube/cmd/main/main.go -f assets/api.json -n $(package_name) -o ${work_dir} -e http://192.168.98.8:9000/api -logtostderr=true
init: init-clean
go run $(GOPATH)/src/github.com/magicsong/generate-go-for-sonarqube/cmd/main/main.go -f assets/api.json -n $(package_name) -o ${work_dir} -e http://192.168.98.8:9000/api -logtostderr=true
integration-testing:
ginkgo --noisyPendings=false -cover --progress --trace ./sonar
no-test-init:
rm -f ${work_dir}/*.go
go run $(GOPATH)/src/github.com/magicsong/generate-go-for-sonarqube/cmd/main/main.go -f assets/api.json -n $(package_name) -o ${work_dir} -e http://192.168.98.8:9000/api -logtostderr=true -no-test