config 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # vim: filetype=yaml sw=2
  2. version: 0.0.7
  3. git_url: https://git.torproject.org/pluggable-transports/obfs4.git
  4. git_hash: 'obfs4proxy-[% c("version") %]'
  5. tag_gpg_id: 1
  6. gpg_keyring: yawning.gpg
  7. filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
  8. build: '[% c("projects/go/var/build_go_lib") %]'
  9. var:
  10. container:
  11. use_container: 1
  12. go_lib: git.torproject.org/pluggable-transports/obfs4.git
  13. go_lib_install:
  14. - git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy
  15. go_lib_deps:
  16. - goptlib
  17. - ed25519
  18. - siphash
  19. - uniuri
  20. - goxcrypto
  21. - goxnet
  22. go_lib_ldflags: '-s'
  23. build_go_lib_pre: |
  24. # Remove go.mod and go.sum files until we can build using Go module
  25. # versioning (see bug 28325).
  26. rm -f go.mod go.sum
  27. go_lib_no_output: 1
  28. build_go_lib_post: |
  29. [% c("var/set_PTDIR_DOCSDIR") -%]
  30. mkdir -p $PTDIR
  31. cp -a "$GOTARGETBIN/obfs4proxy[% IF c('var/windows') %].exe[% END %]" $PTDIR
  32. cd $distdir
  33. [% c('tar', {
  34. tar_src => [ '.' ],
  35. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  36. }) %]
  37. targets:
  38. nightly:
  39. git_hash: master
  40. version: '[% c("abbrev") %]'
  41. tag_gpg_id: 0
  42. var:
  43. # Commit 70d0e90c861be34ce3c5425ef1366a0b2ceb3026 changed the canonical obfs4
  44. # upstream repo to gitlab.com/yawning/obfs4.git.
  45. go_lib: gitlab.com/yawning/obfs4.git
  46. go_lib_install:
  47. - gitlab.com/yawning/obfs4.git/obfs4proxy
  48. go_lib_deps:
  49. - goptlib
  50. - ed25519
  51. - siphash
  52. - uniuri
  53. - goxcrypto
  54. - goxnet
  55. - goutls
  56. - goxtext
  57. input_files:
  58. - project: container-image
  59. - name: go
  60. project: go
  61. - name: goptlib
  62. project: goptlib
  63. - name: ed25519
  64. project: ed25519
  65. - name: siphash
  66. project: siphash
  67. - name: uniuri
  68. project: uniuri
  69. - name: goxcrypto
  70. project: goxcrypto
  71. - name: goxnet
  72. project: goxnet
  73. - name: goutls
  74. project: goutls
  75. enable: '[% c("var/nightly") %]'
  76. - name: goxtext
  77. project: goxtext
  78. enable: '[% c("var/nightly") %]'