File tree Expand file tree Collapse file tree 5 files changed +81
-68
lines changed Expand file tree Collapse file tree 5 files changed +81
-68
lines changed Original file line number Diff line number Diff line change @@ -3,38 +3,34 @@ language: python
3
3
matrix :
4
4
include :
5
5
- sudo : required
6
- services :
7
- - docker
8
- env :
9
- - RELEASE=trusty
6
+ services : docker
7
+ env : RELEASE=trusty
10
8
- sudo : required
11
- env :
12
- - RELEASE=precise
9
+ env : RELEASE=precise
13
10
14
11
env :
15
12
global :
16
- - VERSION='3.6-dev '
17
- - ALIAS='nightly '
13
+ - VERSION='3.5.0 '
14
+ - ALIAS='3.5 '
18
15
19
16
install :
20
- - pushd /opt/pyenv/
21
- - sudo git checkout master
22
- - sudo git pull
23
- - popd
17
+ - pushd /opt/pyenv/
18
+ - sudo git checkout master
19
+ - sudo git pull
20
+ - popd
24
21
25
22
before_script :
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}'
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}'
31
28
32
- script : ./build-python
29
+ script : ./bin/compile
33
30
34
- after_success : ./create- archive
31
+ after_success : ./bin/ archive
35
32
36
- after_failure :
37
- - cat /tmp/python-build.*.log
33
+ after_failure : cat /tmp/python-build.*.log
38
34
39
35
addons :
40
36
artifacts :
Original file line number Diff line number Diff line change 1
- # cpython-builder
1
+ # ` cpython-builder `
2
+
2
3
Clones and builds CPython using ` python-build `
Original file line number Diff line number Diff line change
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
+ : ${DESTS:= }
24
+
25
+ if [[ $VERSION =~ ^python| pypy ]] ; then
26
+ VERSION=" ${VERSION} "
27
+ SHORT_VERSION=" ${VERSION} "
28
+ else
29
+ SHORT_VERSION=" python${VERSION} "
30
+ VERSION=" python-${VERSION} "
31
+ fi
32
+
33
+ TAR_PATHS=" $TAR_PATHS $INSTALL_DEST /$VERSION $HOME /virtualenv/${SHORT_VERSION} "
34
+ DESTS=" $TRAVIS_BUILD_DIR /$LSB_RELEASE /${VERSION} .tar.bz2"
35
+
36
+ if [[ $ALIAS ]] ; then
37
+ if [[ $ALIAS =~ ^python| pypy ]] ; then
38
+ SHORT_ALIAS=" ${ALIAS} "
39
+ LONG_ALIAS=" ${ALIAS} "
40
+ else
41
+ SHORT_ALIAS=" python${ALIAS} "
42
+ LONG_ALIAS=" python-${ALIAS} "
43
+ fi
44
+ TAR_PATHS=" $TAR_PATHS $INSTALL_DEST /$ALIAS $HOME /virtualenv/${SHORT_ALIAS} "
45
+ DESTS=" $DESTS $TRAVIS_BUILD_DIR /$LSB_RELEASE /${LONG_ALIAS} .tar.bz2"
46
+ fi
47
+
48
+ for DEST in $DESTS ; do
49
+ mkdir -p $( dirname $DEST )
50
+ tar -cjf $DEST $TAR_PATHS
51
+
52
+ pushd $( dirname $DEST ) & > /dev/null
53
+
54
+ shopt -s nullglob
55
+ for f in * .* ; do
56
+ sha256sum $f > ${f} .sha256sum.txt
57
+ done
58
+
59
+ popd & > /dev/null
60
+
61
+ echo " ---> $DEST "
62
+ done
File renamed without changes.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments