Skip to content

Commit a8fc836

Browse files
committed
Switch to using the artifacts addon
1 parent 76abb66 commit a8fc836

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

.travis.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717
- ALIAS='nightly'
1818
- INSTALL_DEST=/opt/python
1919
- PACKAGES='pip numpy nose pytest mock wheel'
20+
- LSB_RELEASE="$(lsb_release -rs)"
2021

2122
install:
2223
- pushd /opt/pyenv/
@@ -34,20 +35,16 @@ script:
3435
- popd
3536

3637
after_success:
37-
- mkdir -p $HOME/archive/$(lsb_release -rs)
38-
- tar cjf $HOME/archive/$(lsb_release -rs)/python-$ALIAS.tar.bz2 $INSTALL_DEST/$VERSION $INSTALL_DEST/$ALIAS $HOME/virtualenv/python$VERSION $HOME/virtualenv/python$ALIAS
39-
- ls -lh $HOME/archive/$(lsb_release -rs)/python-$ALIAS.tar.bz2
38+
- mkdir -p $HOME/archive/$LSB_RELEASE
39+
- tar cjf $HOME/archive/$LSB_RELEASE/python-$ALIAS.tar.bz2 $INSTALL_DEST/$VERSION $INSTALL_DEST/$ALIAS $HOME/virtualenv/python$VERSION $HOME/virtualenv/python$ALIAS
40+
- ls -lh $HOME/archive/$LSB_RELEASE/python-$ALIAS.tar.bz2
4041

4142
after_failure:
4243
- cat /tmp/python-build.*.log
4344

44-
deploy:
45-
provider: s3
46-
access_key_id: $ARTIFACTS_KEY
47-
secret_access_key: $ARTIFACTS_SECRET
48-
bucket: $ARTIFACTS_BUCKET
49-
local_dir: $HOME/archive/$(lsb_release -rs)
50-
upload_dir: $(lsb_release -rs)
51-
on:
52-
all_branches: true
53-
acl: public_read
45+
addons:
46+
artifacts:
47+
paths:
48+
- $HOME/archive/$LSB_RELEASE
49+
target_paths:
50+
- $LSB_RELEASE

0 commit comments

Comments
 (0)