Skip to content

Commit 2955b65

Browse files
committed
Merge pull request #5 from travis-ci/revert-4-meat-exe-rename
Revert "Rename executables"
2 parents e4b6e57 + 56d8d5b commit 2955b65

File tree

5 files changed

+68
-81
lines changed

5 files changed

+68
-81
lines changed

.travis.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,38 @@ language: python
33
matrix:
44
include:
55
- sudo: required
6-
services: docker
7-
env: RELEASE=trusty
6+
services:
7+
- docker
8+
env:
9+
- RELEASE=trusty
810
- sudo: required
9-
env: RELEASE=precise
11+
env:
12+
- RELEASE=precise
1013

1114
env:
1215
global:
13-
- VERSION='3.5.0'
14-
- ALIAS='3.5'
16+
- VERSION='3.6-dev'
17+
- ALIAS='nightly'
1518

1619
install:
17-
- pushd /opt/pyenv/
18-
- sudo git checkout master
19-
- sudo git pull
20-
- popd
20+
- pushd /opt/pyenv/
21+
- sudo git checkout master
22+
- sudo git pull
23+
- popd
2124

2225
before_script:
23-
- 'export INSTALL_DEST=${INSTALL_DEST:-/opt/python}'
24-
- 'export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs || echo ${$(sw_vers -productVersion)%*.*})}'
25-
- 'export OS_NAME=${OS_NAME:-$(lsb_release -is | tr "A-Z" "a-z" || echo "osx")}'
26-
- 'export ARCH=${ARCH:-$(uname -m)}'
27-
- 'export PACKAGES=${PACKAGES:-pip numpy nose pytest mock wheel}'
26+
- 'export INSTALL_DEST=${INSTALL_DEST:-/opt/python}'
27+
- 'export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs || echo ${$(sw_vers -productVersion)%*.*})}'
28+
- 'export OS_NAME=${OS_NAME:-$(lsb_release -is | tr "A-Z" "a-z" || "osx")}'
29+
- 'export ARCH=${ARCH:-$(uname -m)}'
30+
- 'export PACKAGES=${PACKAGES:-pip numpy nose pytest mock wheel}'
2831

29-
script: ./bin/compile
32+
script: ./build-python
3033

31-
after_success: ./bin/archive
34+
after_success: ./create-archive
3235

33-
after_failure: cat /tmp/python-build.*.log
36+
after_failure:
37+
- cat /tmp/python-build.*.log
3438

3539
addons:
3640
artifacts:

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
# `cpython-builder`
2-
1+
# cpython-builder
32
Clones and builds CPython using `python-build`

bin/archive

Lines changed: 0 additions & 62 deletions
This file was deleted.
File renamed without changes.

create-archive

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/usr/bin/env bash
2+
3+
set -o errexit
4+
5+
if [[ ! $LSB_RELEASE ]] ; then
6+
echo 'Missing LSB_RELEASE'
7+
exit 1
8+
fi
9+
10+
if [[ ! $INSTALL_DEST ]] ; then
11+
echo 'Missing INSTALL_DEST'
12+
exit 1
13+
fi
14+
15+
if [[ ! $VERSION ]] ; then
16+
echo 'Missing VERSION'
17+
exit 1
18+
fi
19+
20+
set -o xtrace
21+
22+
: ${TAR_PATHS:=}
23+
: ${DEST:=${1}}
24+
25+
TAR_PATHS="$TAR_PATHS $INSTALL_DEST/$VERSION $HOME/virtualenv/python$VERSION"
26+
27+
if [[ $ALIAS ]] ; then
28+
TAR_PATHS="$TAR_PATHS $INSTALL_DEST/$ALIAS $HOME/virtualenv/python$ALIAS"
29+
DEST="$TRAVIS_BUILD_DIR/$LSB_RELEASE/python-${ALIAS}.tar.bz2"
30+
else
31+
if [[ ! $DEST ]] ; then
32+
DEST="$TRAVIS_BUILD_DIR/$LSB_RELEASE/python-${VERSION}.tar.bz2"
33+
fi
34+
fi
35+
36+
mkdir -p $(dirname $DEST)
37+
tar -cjf $DEST $TAR_PATHS
38+
39+
cd $(dirname $DEST) &>/dev/null
40+
41+
shopt -s nullglob
42+
for f in *.* ; do
43+
sha256sum $f > ${f}.sha256sum.txt
44+
done
45+
46+
echo "---> $DEST"

0 commit comments

Comments
 (0)