build.sh 1.0 KB

1234567891011121314151617181920212223242526272829
  1. HERE=`pwd`
  2. export GOPATH=$HERE/vendor
  3. export PATH=$PATH:$HERE/vendor/bin
  4. echo "fmt"
  5. gofmt -s -w .
  6. echo "install gb..."
  7. go get github.com/constabulary/gb/...
  8. #gb vendor purge
  9. #gb vendor fetch github.com/uber/jaeger-client-go
  10. #gb vendor fetch git.finogeeks.club/skunkworks/gomatrixutil
  11. #gb vendor fetch github.com/eapache/queue
  12. #echo "restore vendors..."
  13. #gb vendor restore
  14. echo clean
  15. find . -name "*.a"|xargs rm -rf
  16. export GOPATH=$HERE
  17. echo "build..."
  18. #gb build -race github.com/matrix-org/dendrite/cmd/...
  19. gb build github.com/matrix-org/dendrite/cmd/...
  20. gb build github.com/matrix-org/dendrite/message/...
  21. gb build github.com/matrix-org/dendrite/proxy/...
  22. #gb build github.com/matrix-org/dendrite/cmd/dendrite-sync-api-server/...
  23. #gb build github.com/matrix-org/dendrite/cmd/front-server/...
  24. #gb build github.com/matrix-org/dendrite/cmd/persist-server/...
  25. #gb build github.com/matrix-org/dendrite/cmd/push-sender/...
  26. #gb build github.com/matrix-org/dendrite/cmd/cache-loader-server/...
  27. #gb vendor purge
  28. #gb vendor delete gopkg.in/Shopify/sarama.v1