Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
There may be no cache directory on upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Dec 21, 2016
1 parent e23f6ad commit e269600
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintenance/upload-cache-to-github.py
Expand Up @@ -454,6 +454,12 @@ def upload_meta(self, github, cache_done):

cache_dir = os.path.normpath(args.cache_dir)

# Some tests don't produce cache for some toolchains:
# * https://travis-ci.org/ingenue/hunter/jobs/185550289
if not os.path.exists(cache_dir):
print("*** WARNING *** Cache directory '{}' not found, skipping...".format(cache_dir))
sys.exit()

if not os.path.isdir(cache_dir):
raise Exception('Not a directory: {}'.format(cache_dir))

Expand Down

0 comments on commit e269600

Please sign in to comment.