config 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. 4.2.0: 09cda9fb155e4987bdc03b702219960e9729c448146f023f8c93de57836edf31
  23. 4.4.0: afc0eb6497413eab8e5cf95cf9bbfe4dc1cc53a208b9b66572cfde752f3023e9
  24. 5.0.1: 289b843af3d0f4bd5fbdc77c94c7e1b2830bcbbf7e43786d30b2bd02f85b4a1a
  25. glean_wheels_url:
  26. 3.4.0: https://people.torproject.org/~boklm/mirrors/sources/glean-wheels-3.4.0-build2.tar.xz
  27. 4.0.0: https://people.torproject.org/~boklm/mirrors/sources/glean-wheels-4.0.0.tar.xz
  28. 4.2.0: https://people.torproject.org/~pierov/tbb_files/glean-wheels-4.2.0.tar.xz
  29. 4.4.0: https://people.torproject.org/~boklm/mirrors/sources/glean-wheels-4.4.0.tar.xz
  30. 5.0.1: https://people.torproject.org/~aguestuser/mirrors/sources/glean-wheels-5.0.1.tar.xz
  31. steps:
  32. create_glean_deps_tarball:
  33. git_url: ''
  34. version: 5.0.1
  35. filename: 'glean-wheels-[% c("version") %].tar.xz'
  36. build_log: '-'
  37. var:
  38. container:
  39. use_container: 1
  40. create_glean_deps_tarball: |
  41. #!/bin/bash
  42. [% c("var/set_default_env") -%]
  43. mkdir glean-wheels
  44. cd glean-wheels
  45. [% IF c("var/use_torsocks") %]torsocks [% END%]python3 -m pip download glean_parser==[% c("version") %]
  46. # Get pyyaml, needed for building application-services
  47. [% IF c("var/use_torsocks") %]torsocks [% END%]python3 -m pip download pyyaml==5.3.1
  48. cd ..
  49. [% c('tar', {
  50. tar_src => [ 'glean-wheels' ],
  51. tar_args => '-cJf ' _ dest_dir _ '/' _ c('filename'),
  52. }) %]
  53. cd '[% dest_dir %]'
  54. sha256sum [% c('filename') %]
  55. echo 'The file is ready to be uploaded:'
  56. echo ' scp -p out/glean/[% c("filename") %] people.torproject.org:public_html/mirrors/sources/'
  57. input_files:
  58. - project: container-image
  59. pkg_type: build
  60. targets:
  61. with_torsocks:
  62. use_torsocks: 1