[releng/abderrahim/beta] convert-to-tarballs: change the flatpak branch according to the version
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [releng/abderrahim/beta] convert-to-tarballs: change the flatpak branch according to the version
- Date: Mon, 2 Sep 2019 13:06:01 +0000 (UTC)
commit 96c95643dceeca45a93d2db66f6d17f5626783fd
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Mon Sep 2 13:57:06 2019 +0100
convert-to-tarballs: change the flatpak branch according to the version
tools/smoketesting/convert-to-tarballs.py | 15 +++++++++++++++
1 file changed, 15 insertions(+)
---
diff --git a/tools/smoketesting/convert-to-tarballs.py b/tools/smoketesting/convert-to-tarballs.py
index 03b750c..0d1e7df 100755
--- a/tools/smoketesting/convert-to-tarballs.py
+++ b/tools/smoketesting/convert-to-tarballs.py
@@ -853,6 +853,21 @@ def main(args):
if options.convert:
convert.create_versions_file()
+ # update variables in the .gitlab-ci.yml
+ if int(splitted_version[1]) % 2 == 0:
+ flatpak_branch = '{}.{}'.format(splitted_version[0], splitted_version[1])
+ elif int(splitted_version[2]) >= 90:
+ flatpak_branch = '{}.{}beta'.format(splitted_version[0], int(splitted_version[1]) + 1)
+
+ cifile = os.path.join(options.directory, '.gitlab-ci.yml')
+ with open(cifile) as f:
+ ci = yaml.round_trip_load(f, preserve_quotes=True)
+
+ ci['variables']['FLATPAK_BRANCH'] = flatpak_branch
+
+ with open(cifile, 'w') as f:
+ yaml.round_trip_dump(ci, f)
+
if convert.ignored_tarballs:
print("Could not find a download site for the following modules:")
for module_name in convert.ignored_tarballs:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]