caches: Move clean-unused-caches to scripts/lib/.

This commit is contained in:
Tim Abbott
2017-09-25 16:10:11 -07:00
parent ef1242bb62
commit 703b87c116
3 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ install:
# Clean any caches that are not in use to avoid our cache
# becoming huge.
- mispipe "scripts/clean-unused-caches --verbose --threshold 0" ts
- mispipe "scripts/lib/clean-unused-caches --verbose --threshold 0" ts
script:
# We unset GEM_PATH here as a hack to work around Travis CI having

View File

@@ -4,7 +4,7 @@ import os
import subprocess
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)
from scripts.lib.zulip_tools import get_environment, parse_cache_script_args

View File

@@ -67,7 +67,7 @@ def main():
print("Cleaning 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")
if __name__ == "__main__":