.drone.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. - go list ./... | xargs go get
  12. - go get -u golang.org/x/lint/golint
  13. quality:
  14. image: golang
  15. commands:
  16. - go list ./... | xargs go vet
  17. - go list ./... | xargs golint -set_exit_status
  18. units-tests:
  19. image: golang
  20. commands:
  21. - export PATH=$PATH:/go/src/cwtch.im/cwtch
  22. - sh testing/tests.sh
  23. integ-test:
  24. image: golang
  25. commands:
  26. - ./tor -f ./torrc
  27. - sleep 15
  28. - go test -v cwtch.im/cwtch/testing
  29. notify-email:
  30. image: drillster/drone-email
  31. host: build.openprivacy.ca
  32. port: 25
  33. skip_verify: true
  34. from: drone@openprivacy.ca
  35. when:
  36. status: [ failure ]
  37. notify-gogs:
  38. image: openpriv/drone-gogs
  39. when:
  40. event: pull_request
  41. status: [ success, changed, failure ]
  42. secrets: [gogs_account_token]
  43. gogs_url: https://git.openprivacy.ca