File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,9 @@ script:
63
63
- hercules --burndown --couples --devs --quiet --pb https://github.com/src-d/hercules > 1.pb
64
64
- cp 1.pb 2.pb
65
65
- hercules combine 1.pb 2.pb > 12.pb
66
- - # (hercules generate-plugin -n MyPlug -o myplug && cd myplug && make)
67
- - # (cd contrib/_plugin_example && make)
66
+ - (hercules generate-plugin -n MyPlug -o myplug && cd myplug && GOFLAGS="-tags=tensorflow" make)
67
+ - hercules --plugin myplug/my_plug.so --help | grep my-plug
68
+ - (cd contrib/_plugin_example && GOBIN=../.. make)
68
69
- hercules --burndown --burndown-files --burndown-people --couples --devs --quiet https://github.com/src-d/hercules | labours -m all -o out --backend Agg --disable-projector
69
70
- hercules --burndown --burndown-files --burndown-people --couples --devs --quiet --pb https://github.com/src-d/hercules | labours -f pb -m all -o out --backend Agg --disable-projector
70
71
- # hercules --sentiment --quiet --languages Python https://github.com/src-d/hercules > /dev/null
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ var generatePluginCmd = &cobra.Command{
111
111
all: {{.shlib}}
112
112
113
113
{{.shlib}}: {{.output}} {{.protogo}}
114
- ` + "\t " + `go build -buildmode=plugin -linkshared {{.output}} {{.protogo}}
114
+ ` + "\t " + `go build -buildmode=plugin ${GOFLAGS} {{.output}} {{.protogo}}
115
115
116
116
{{.protogo}}: {{.proto}}
117
117
` + "\t " + `PATH=$$PATH:$$GOBIN protoc --gogo_out=. --proto_path=. {{.proto}}
Original file line number Diff line number Diff line change
1
+ GO111MODULE = on
2
+
1
3
all : churn_analysis.so
2
4
3
5
churn_analysis.so : churn_analysis.go churn_analysis.pb.go
4
- go build -buildmode=plugin -linkshared churn_analysis.go churn_analysis.pb.go
6
+ go build -buildmode=plugin churn_analysis.go churn_analysis.pb.go
5
7
6
8
churn_analysis.pb.go : churn_analysis.proto
7
- PATH=$$ PATH:$$ GOPATH/bin protoc --gogo_out=. --proto_path=. churn_analysis.proto
9
+ PATH=$$ PATH:$$ GOBIN protoc --gogo_out=. --proto_path=. churn_analysis.proto
You can’t perform that action at this time.
0 commit comments