deb.rules 520 B

123456789101112131415161718
  1. #!/usr/bin/make -f
  2. # -*- makefile -*-
  3. # Uncomment this to turn on verbose mode.
  4. #export DH_VERBOSE=1
  5. # Launchpad rejects Go's access to $HOME/.cache, use custom folder
  6. export GOCACHE=/tmp/go-build
  7. export GOROOT_BOOTSTRAP={{.GoBootPath}}
  8. override_dh_auto_build:
  9. (cd .go/src && ./make.bash)
  10. build/env.sh .go/bin/go run build/ci.go install -git-commit={{.Env.Commit}} -git-branch={{.Env.Branch}} -git-tag={{.Env.Tag}} -buildnum={{.Env.Buildnum}} -pull-request={{.Env.IsPullRequest}}
  11. override_dh_auto_test:
  12. %:
  13. dh $@