config 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # vim: filetype=yaml sw=2
  2. git_hash: 'v[% c("version") %]'
  3. git_url: https://github.com/mozilla/glean.git
  4. filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
  5. version: '[% pc(c("origin_project"), "var/glean_version", { step => "list_toolchain_updates" }) %]'
  6. src: |
  7. #!/bin/bash
  8. mv -f [% project %]-[% c('version') %].tar.gz [% dest_dir %]/[% c('filename') %]
  9. steps:
  10. create_glean_deps_tarball:
  11. git_url: ''
  12. version: 3.4.0
  13. filename: 'glean-wheels-[% c("version") %].tar.xz'
  14. build_log: '-'
  15. var:
  16. container:
  17. use_container: 1
  18. create_glean_deps_tarball: |
  19. #!/bin/bash
  20. [% c("var/set_default_env") -%]
  21. [% pc('python', 'var/setup', { python_tarfile => c('input_files_by_name/python') }) %]
  22. mkdir glean-wheels
  23. cd glean-wheels
  24. [% IF c("var/use_torsocks") %]torsocks [% END%]python3 -m pip download glean_parser==[% c("version") %]
  25. cd ..
  26. [% c('tar', {
  27. tar_src => [ 'glean-wheels' ],
  28. tar_args => '-cJf ' _ dest_dir _ '/' _ c('filename'),
  29. }) %]
  30. cd '[% dest_dir %]'
  31. sha256sum [% c('filename') %]
  32. echo 'The file is ready to be uploaded:'
  33. echo ' scp -p out/glean/[% c("filename") %] people.torproject.org:public_html/mirrors/sources/'
  34. input_files:
  35. - project: container-image
  36. pkg_type: build
  37. - project: python
  38. name: python
  39. pkg_type: build
  40. targets:
  41. with_torsocks:
  42. var:
  43. # The `container-image` project looks at the deps list in origin_project
  44. # in the same step (build), so we cannot put this inside the
  45. # `create_glean_deps_tarball` step.
  46. # rbm#40020 should allow us to fix that.
  47. deps:
  48. - torsocks
  49. - xz-utils
  50. use_torsocks: 1