.drone.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. workspace:
  2. base: /go
  3. path: src/cwtch.im/cwtch
  4. pipeline:
  5. fetch:
  6. image: golang
  7. commands:
  8. - wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor
  9. - wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc
  10. - chmod a+x tor
  11. - export GO111MODULE=on
  12. - go mod vendor
  13. - go get -u golang.org/x/lint/golint
  14. quality:
  15. image: golang
  16. commands:
  17. - go list ./... | xargs go vet
  18. - go list ./... | xargs golint -set_exit_status
  19. units-tests:
  20. image: golang
  21. commands:
  22. - export PATH=$PATH:/go/src/cwtch.im/cwtch
  23. - sh testing/tests.sh
  24. integ-test:
  25. image: golang
  26. commands:
  27. - ./tor -f ./torrc
  28. - sleep 15
  29. - go test -v cwtch.im/cwtch/testing
  30. notify-email:
  31. image: drillster/drone-email
  32. host: build.openprivacy.ca
  33. port: 25
  34. skip_verify: true
  35. from: drone@openprivacy.ca
  36. when:
  37. status: [ failure ]
  38. notify-gogs:
  39. image: openpriv/drone-gogs
  40. when:
  41. event: pull_request
  42. status: [ success, changed, failure ]
  43. secrets: [gogs_account_token]
  44. gogs_url: https://git.openprivacy.ca