Skip to content

Commit fad4908

Browse files
committed
Upload artifacts to S3
1 parent 497c57b commit fad4908

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.travis.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ script:
1717
- virtualenv --distribute --python=$INSTALL_DEST/$VERSION/bin/python /home/travis/virtualenv/python$VERSION
1818
- ln -s $HOME/virtualenv/python$VERSION $HOME/virtualenv/python$ALIAS
1919
- $HOME/virtualenv/python$VERSION/bin/pip install --upgrade $PACKAGES
20-
- tar cf python-$VERSION.tar $INSTALL_DEST/$VERSION $INSTALL_DEST/$ALIAS $HOME/virtualenv/python$VERSION $HOME/virtualenv/python$ALIAS
21-
- bzip2 python-$VERSION.tar
22-
- ls -lh python-$VERSION.tar.bz2
20+
21+
after_success:
22+
- mkdir $HOME/archive
23+
- tar cjf $HOME/archive/python-$VERSION.tar.bz2 $INSTALL_DEST/$VERSION $INSTALL_DEST/$ALIAS $HOME/virtualenv/python$VERSION $HOME/virtualenv/python$ALIAS
24+
- ls -lh $HOME/archive/python-$VERSION.tar.bz2
25+
26+
deploy:
27+
provider: s3
28+
access_key_id: $ARTIFACTS_KEY
29+
secret_access_key: $ARTIFACTS_SECRET
30+
bucket: $ARTIFACTS_BUCKET
31+
local_dir: $HOME/archive

0 commit comments

Comments
 (0)