mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
caches: Move clean-unused-caches to scripts/lib/.
This commit is contained in:
@@ -17,7 +17,7 @@ install:
|
|||||||
|
|
||||||
# Clean any caches that are not in use to avoid our cache
|
# Clean any caches that are not in use to avoid our cache
|
||||||
# becoming huge.
|
# becoming huge.
|
||||||
- mispipe "scripts/clean-unused-caches --verbose --threshold 0" ts
|
- mispipe "scripts/lib/clean-unused-caches --verbose --threshold 0" ts
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# We unset GEM_PATH here as a hack to work around Travis CI having
|
# We unset GEM_PATH here as a hack to work around Travis CI having
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import os
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
sys.path.append(ZULIP_PATH)
|
sys.path.append(ZULIP_PATH)
|
||||||
from scripts.lib.zulip_tools import get_environment, parse_cache_script_args
|
from scripts.lib.zulip_tools import get_environment, parse_cache_script_args
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@ def main():
|
|||||||
print("Cleaning orphaned/unused caches...")
|
print("Cleaning orphaned/unused caches...")
|
||||||
|
|
||||||
# Call 'clean-unused-caches' script to clean any orphaned/unused caches.
|
# Call 'clean-unused-caches' script to clean any orphaned/unused caches.
|
||||||
subprocess.check_call([os.path.join(ZULIP_PATH, "scripts/clean-unused-caches")] + sys.argv[1:])
|
subprocess.check_call([os.path.join(ZULIP_PATH, "scripts/lib/clean-unused-caches")] + sys.argv[1:])
|
||||||
print("Done!\n")
|
print("Done!\n")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user