Tapir provides a framework for building Anonymous / metadata resistant Services
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.

67 lines
1.6KB

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