Skip to content

Commit

Permalink
fix test script
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Gummelt committed Sep 15, 2016
1 parent ff5dbd5 commit 238f921
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@
def upload_jar(jar):
conn = S3Connection(os.environ['AWS_ACCESS_KEY_ID'], os.environ['AWS_SECRET_ACCESS_KEY'])
bucket = conn.get_bucket(os.environ['S3_BUCKET'])
basename = os.path.basename(jar)

key = Key(bucket, 'S3_PREFIX')
key = Key(bucket, '{}/{}'.format(os.environ['S3_PREFIX'], basename))
key.metadata = {'Content-Type': 'application/java-archive'}
key.set_contents_from_filename(jar)
key.make_public()

basename = os.path.basename(jar)

jar_url = "http://{0}.s3.amazonaws.com/{1}/{2}".format(
os.environ['S3_BUCKET'],
os.environ['S3_PREFIX'],
Expand Down

0 comments on commit 238f921

Please sign in to comment.