diff options
Diffstat (limited to '.travis/after_script')
-rwxr-xr-x | .travis/after_script | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/.travis/after_script b/.travis/after_script deleted file mode 100755 index 2a8b2268d..000000000 --- a/.travis/after_script +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python - -import os -import site -import sys -import tarfile -from utils import get_bundle_filename - -wanted_filename = get_bundle_filename() - -if os.path.exists(wanted_filename) and os.path.getsize(wanted_filename): - print "File was downloaded, no need to upload" - sys.exit() - -site.addsitedir(site.getusersitepackages()) -os.system('pip install --user boto') - -import boto -from boto.s3.key import Key - -print "Creating archive..." -tfile = tarfile.open(wanted_filename, 'w:gz') -tfile.add('local') -tfile.close() - -print "Uploading archive to S3..." -conn = boto.connect_s3() -bucket = conn.get_bucket('fixmystreet-bundle-cache') -key = Key(bucket) -key.key = wanted_filename -key.set_contents_from_filename(wanted_filename) - -print "Completed" |