config 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. var:
  10. # The `container-image` project looks at the deps list in origin_project
  11. # in the same step (build), so we cannot put this inside the
  12. # `create_glean_deps_tarball` step.
  13. # rbm#40020 should allow us to fix that.
  14. deps:
  15. - python3
  16. - python3-pip
  17. - torsocks
  18. - xz-utils
  19. glean_wheels_sha256sum:
  20. 3.4.0: 6bbf3a9ffa939ca87e00b486f2020ab5cf9dea772f1d37b048f666fed38f98c1
  21. 4.0.0: c974113bd8671364c592fea9b64bac660b59d4f03a7dcecd4dd4e0c355431db8
  22. glean_wheels_url:
  23. 3.4.0: https://people.torproject.org/~boklm/mirrors/sources/glean-wheels-3.4.0-build2.tar.xz
  24. 4.0.0: https://people.torproject.org/~boklm/mirrors/sources/glean-wheels-4.0.0.tar.xz
  25. steps:
  26. create_glean_deps_tarball:
  27. git_url: ''
  28. version: 4.0.0
  29. filename: 'glean-wheels-[% c("version") %].tar.xz'
  30. build_log: '-'
  31. var:
  32. container:
  33. use_container: 1
  34. create_glean_deps_tarball: |
  35. #!/bin/bash
  36. [% c("var/set_default_env") -%]
  37. mkdir glean-wheels
  38. cd glean-wheels
  39. [% IF c("var/use_torsocks") %]torsocks [% END%]python3 -m pip download glean_parser==[% c("version") %]
  40. # Get pyyaml, needed for building application-services
  41. [% IF c("var/use_torsocks") %]torsocks [% END%]python3 -m pip download pyyaml==5.3.1
  42. cd ..
  43. [% c('tar', {
  44. tar_src => [ 'glean-wheels' ],
  45. tar_args => '-cJf ' _ dest_dir _ '/' _ c('filename'),
  46. }) %]
  47. cd '[% dest_dir %]'
  48. sha256sum [% c('filename') %]
  49. echo 'The file is ready to be uploaded:'
  50. echo ' scp -p out/glean/[% c("filename") %] people.torproject.org:public_html/mirrors/sources/'
  51. input_files:
  52. - project: container-image
  53. pkg_type: build
  54. targets:
  55. with_torsocks:
  56. use_torsocks: 1