D. Can Celasun | e0e1a08 | 2019-05-10 09:18:11 +0200 | [diff] [blame] | 1 | #!/bin/sh |
2 | set -e | ||||
3 | |||||
4 | export GOPATH=`pwd` | ||||
5 | export GOBIN=`pwd`/bin | ||||
6 | export GO111MODULE=off | ||||
7 | |||||
8 | mkdir -p src/github.com/golang/mock | ||||
9 | cd src/github.com/golang | ||||
10 | curl -fsSL https://github.com/golang/mock/archive/v1.2.0.tar.gz -o mock.tar.gz | ||||
11 | tar -xzvf mock.tar.gz -C mock --strip-components=1 | ||||
12 | cd mock/mockgen | ||||
13 | go install . | ||||
14 | cd ../../../../../ | ||||
15 | bin/mockgen -destination=src/common/mock_handler.go -package=common gen/thrifttest ThriftTest |