mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-05-03 17:18:56 +00:00
Install meson from git when MESON_COMMIT variable is set
When starting manually a CI pipeline with MESON_COMMIT variable defined, install the specified version of Meson. This can be used to help the Meson project smoke testing RC releases or investigate eventual regressions. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3036>
This commit is contained in:
parent
4f846540cb
commit
4c3bb001f5
|
@ -73,10 +73,19 @@ def copy_cache(options):
|
||||||
subprocess.check_call(['meson', 'subprojects', 'update', '--reset'])
|
subprocess.check_call(['meson', 'subprojects', 'update', '--reset'])
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade_meson():
|
||||||
|
# MESON_COMMIT variable can be set when creating a pipeline to test meson pre releases
|
||||||
|
meson_commit = os.environ.get('MESON_COMMIT')
|
||||||
|
if meson_commit:
|
||||||
|
url = f'git+https://github.com/mesonbuild/meson.git@{meson_commit}'
|
||||||
|
subprocess.check_call(['pip3', 'install', '--upgrade', url])
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
options = PARSER.parse_args()
|
options = PARSER.parse_args()
|
||||||
|
|
||||||
if options.build:
|
if options.build:
|
||||||
create_cache_in_image(options)
|
create_cache_in_image(options)
|
||||||
else:
|
else:
|
||||||
|
upgrade_meson()
|
||||||
copy_cache(options)
|
copy_cache(options)
|
||||||
|
|
Loading…
Reference in a new issue