Skip to content

Commit 1f9b90f

Browse files
committed
Build on precise and trusty
Upload to subdirectories
1 parent 4fdafe2 commit 1f9b90f

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.travis.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
language: python
22

3+
matrix:
4+
include:
5+
- sudo: required
6+
services:
7+
- docker
8+
env:
9+
- RELEASE=trusty
10+
- sudo: required
11+
- RELEASE=precise
12+
313
env:
414
global:
515
- VERSION='3.6-dev'
@@ -23,9 +33,9 @@ script:
2333
- popd
2434

2535
after_success:
26-
- mkdir $HOME/archive
27-
- tar cjf $HOME/archive/python-$ALIAS.tar.bz2 $INSTALL_DEST/$VERSION $INSTALL_DEST/$ALIAS $HOME/virtualenv/python$VERSION $HOME/virtualenv/python$ALIAS
28-
- ls -lh $HOME/archive/python-$ALIAS.tar.bz2
36+
- mkdir $HOME/archive/$(lsb_release -rs)
37+
- 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
38+
- ls -lh $HOME/archive/$(lsb_release -rs)/python-$ALIAS.tar.bz2
2939

3040
after_failure:
3141
- cat /tmp/python-build.*.log
@@ -35,7 +45,7 @@ deploy:
3545
access_key_id: $ARTIFACTS_KEY
3646
secret_access_key: $ARTIFACTS_SECRET
3747
bucket: $ARTIFACTS_BUCKET
38-
local_dir: $HOME/archive
48+
local_dir: $HOME/archive/$(lsb_release -rs)
3949
on:
4050
all_branches: true
4151
acl: public_read

0 commit comments

Comments
 (0)