Official cwtch.im peer and server implementations.
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.
 
 
 

46 lines
1.2 KiB

  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/bin/tor
  9. - wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/torrc
  10. - wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/gogs-notify.sh
  11. - chmod a+x tor
  12. - go list ./... | xargs go get
  13. - go get -u github.com/golang/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: [ success, changed, failure ]
  38. notify-gogs:
  39. image: golang
  40. when:
  41. event: pull-request
  42. secrets: [BUILDBOT]
  43. commands:
  44. - echo "Notifying"
  45. - sh gogs-notify.sh