File tree Expand file tree Collapse file tree 5 files changed +68
-81
lines changed Expand file tree Collapse file tree 5 files changed +68
-81
lines changed Original file line number Diff line number Diff line change @@ -3,34 +3,38 @@ language: python
3
3
matrix :
4
4
include :
5
5
- sudo : required
6
- services : docker
7
- env : RELEASE=trusty
6
+ services :
7
+ - docker
8
+ env :
9
+ - RELEASE=trusty
8
10
- sudo : required
9
- env : RELEASE=precise
11
+ env :
12
+ - RELEASE=precise
10
13
11
14
env :
12
15
global :
13
- - VERSION='3.5.0 '
14
- - ALIAS='3.5 '
16
+ - VERSION='3.6-dev '
17
+ - ALIAS='nightly '
15
18
16
19
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
21
24
22
25
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}'
28
31
29
- script : ./bin/compile
32
+ script : ./build-python
30
33
31
- after_success : ./bin/ archive
34
+ after_success : ./create- archive
32
35
33
- after_failure : cat /tmp/python-build.*.log
36
+ after_failure :
37
+ - cat /tmp/python-build.*.log
34
38
35
39
addons :
36
40
artifacts :
Original file line number Diff line number Diff line change 1
- # ` cpython-builder `
2
-
1
+ # cpython-builder
3
2
Clones and builds CPython using ` python-build `
Load Diff This file was deleted.
File renamed without changes.
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
+ : ${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 "
You can’t perform that action at this time.
0 commit comments