You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
590 B

  1. #!/bin/bash
  2. set -e
  3. if [[ $GO111MODULE == "on" ]]; then
  4. go get .
  5. else
  6. go get -u -v $(go list -f '{{join .Imports "\n"}}{{"\n"}}{{join .TestImports "\n"}}' ./... | sort | uniq | grep -v appengine)
  7. fi
  8. if [[ $GOAPP == "true" ]]; then
  9. mkdir /tmp/sdk
  10. curl -o /tmp/sdk.zip "https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.68.zip"
  11. unzip -q /tmp/sdk.zip -d /tmp/sdk
  12. # NOTE: Set the following env vars in the test script:
  13. # export PATH="$PATH:/tmp/sdk/go_appengine"
  14. # export APPENGINE_DEV_APPSERVER=/tmp/sdk/go_appengine/dev_appserver.py
  15. fi