Test changing of update_check_interval on the CI server

This commit is contained in:
Kovid Goyal 2019-06-04 14:32:37 +05:30
parent a75d075dd1
commit d12a4b0a1a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 8 additions and 7 deletions

View File

@ -13,7 +13,7 @@ jobs:
- run: python3 test.py
- run: make FAIL_WARN=-W man
- run: make FAIL_WARN=-W html
- run: python3 setup.py linux-package
- run: python3 setup.py linux-package --update-check-interval=0
lin-35:
docker:

View File

@ -657,6 +657,7 @@ def package(args, for_bundle=False, sh_launcher=False):
shutil.copytree('kitty', os.path.join(libdir, 'kitty'), ignore=src_ignore)
shutil.copytree('kittens', os.path.join(libdir, 'kittens'), ignore=src_ignore)
if args.update_check_interval != 24.0:
with open(os.path.join(libdir, 'kitty/config_data.py'), 'r+', encoding='utf-8') as f:
raw = f.read()
nraw = raw.replace("update_check_interval', 24", "update_check_interval', {}".format(args.update_check_interval), 1)