Permalink
Browse files

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

  • Loading branch information...
timabbott committed Sep 25, 2017
1 parent ef1242b commit 703b87c1163604c2146e26912fb13839a10bd65a
Showing with 3 additions and 3 deletions.
  1. +1 −1 .travis.yml
  2. +1 −1 scripts/{ → lib}/clean-unused-caches
  3. +1 −1 scripts/purge-old-deployments
View
@@ -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
@@ -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
@@ -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__":

0 comments on commit 703b87c

Please sign in to comment.