File tree Expand file tree Collapse file tree 3 files changed +50
-17
lines changed Expand file tree Collapse file tree 3 files changed +50
-17
lines changed Original file line number Diff line number Diff line change @@ -25,24 +25,9 @@ install:
25
25
- sudo git pull
26
26
- popd
27
27
28
- script :
29
- - pushd $HOME
30
- - sudo env PYTHON_BUILD_ROOT=/opt/pyenv/plugins/python-build
31
- /opt/pyenv/plugins/python-build/bin/python-build $VERSION $INSTALL_DEST/$VERSION
32
- - sudo ln -s $INSTALL_DEST/$VERSION $INSTALL_DEST/$ALIAS
33
- - virtualenv --distribute --python=$INSTALL_DEST/$VERSION/bin/python
34
- /home/travis/virtualenv/python$VERSION
35
- - ln -s $HOME/virtualenv/python$VERSION $HOME/virtualenv/python$ALIAS
36
- - $HOME/virtualenv/python$VERSION/bin/pip install --upgrade $PACKAGES
37
- - popd
28
+ script : ./build-python
38
29
39
- after_success :
40
- - mkdir -p $TRAVIS_BUILD_DIR/$LSB_RELEASE
41
- - tar cjf $TRAVIS_BUILD_DIR/$LSB_RELEASE/python-$ALIAS.tar.bz2
42
- $INSTALL_DEST/$VERSION
43
- $INSTALL_DEST/$ALIAS
44
- $HOME/virtualenv/python$VERSION
45
- $HOME/virtualenv/python$ALIAS
30
+ after_success : ./create-archive
46
31
47
32
after_failure :
48
33
- cat /tmp/python-build.*.log
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -o errexit
4
+
5
+ [[ $INSTALL_DEST ]]
6
+ [[ $VERSION ]]
7
+
8
+ sudo env PYTHON_BUILD_ROOT=/opt/pyenv/plugins/python-build \
9
+ /opt/pyenv/plugins/python-build/bin/python-build $VERSION $INSTALL_DEST /$VERSION
10
+
11
+ if [[ $ALIAS ]] ; then
12
+ sudo ln -s $INSTALL_DEST /$VERSION $INSTALL_DEST /$ALIAS
13
+ fi
14
+
15
+ virtualenv --distribute --python=$INSTALL_DEST /$VERSION /bin/python \
16
+ /home/travis/virtualenv/python$VERSION
17
+
18
+ if [[ $ALIAS ]] ; then
19
+ ln -s $HOME /virtualenv/python$VERSION $HOME /virtualenv/python$ALIAS
20
+ fi
21
+
22
+ if [[ $PACKAGES ]] ; then
23
+ $HOME /virtualenv/python$VERSION /bin/pip install --upgrade $PACKAGES
24
+ fi
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -o errexit
4
+
5
+ [[ $LSB_RELEASE ]]
6
+ [[ $INSTALL_DEST ]]
7
+ [[ $VERSION ]]
8
+
9
+ : ${TAR_PATHS:= }
10
+ : ${DEST:= ${1} }
11
+
12
+ TAR_PATHS=" $TAR_PATHS $INSTALL_DEST /$VERSION $HOME /virtualenv/python$VERSION "
13
+
14
+ if [[ $ALIAS ]] ; then
15
+ TAR_PATHS=" $TAR_PATHS $INSTALL_DEST /$ALIAS $HOME /virtualenv/python$ALIAS "
16
+ DEST=" $TRAVIS_BUILD_DIR /$LSB_RELEASE /python-${ALIAS} .tar.bz2"
17
+ else
18
+ if [[ ! $DEST ]] ; then
19
+ DEST=" $TRAVIS_BUILD_DIR /$LSB_RELEASE /python-${VERSION} .tar.bz2"
20
+ fi
21
+ fi
22
+
23
+ mkdir -p $( dirname $DEST )
24
+ exec tar -cjf $DEST $TAR_PATHS
You can’t perform that action at this time.
0 commit comments