File tree Expand file tree Collapse file tree 6 files changed +65
-37
lines changed Expand file tree Collapse file tree 6 files changed +65
-37
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # Run tests over all Python versions in branch python-2.4-2.7
2
3
set -e
3
4
function finish {
4
5
cd $owd
@@ -11,7 +12,9 @@ if ! source ./pyenv-2.4-2.7-versions ; then
11
12
exit $?
12
13
fi
13
14
if ! source ./setup-python-2.4.sh ; then
14
- exit $?
15
+ rc=$?
16
+ finish
17
+ exit $rc
15
18
fi
16
19
17
20
cd ..
@@ -22,6 +25,8 @@ for version in $PYVERSIONS; do
22
25
fi
23
26
make clean && python setup.py develop
24
27
if ! make check ; then
28
+ finish
29
+ rc=$?
25
30
exit $?
26
31
fi
27
32
echo === $version ===
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # Run tests over all Python versions in branch python-3.3-3.5
3
+ set -e
2
4
function finish {
3
5
cd $owd
4
6
}
@@ -25,3 +27,4 @@ for version in $PYVERSIONS; do
25
27
fi
26
28
echo === $version ===
27
29
done
30
+ finish
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # Check out master branch and dependent development master branches
3
+ set -e
2
4
PYTHON_VERSION=3.8.18
3
5
6
+ bs=${BASH_SOURCE[0]}
7
+ if [[ $0 == $bs ]] ; then
8
+ echo " This script should be *sourced* rather than run directly through bash"
9
+ exit 1
10
+ fi
11
+
4
12
function checkout_version {
5
13
local repo=$1
6
14
version=${2:- master}
@@ -14,18 +22,17 @@ function checkout_version {
14
22
function finish {
15
23
cd $owd
16
24
}
17
-
18
- export PATH=$HOME /.pyenv/bin/pyenv:$PATH
19
25
owd=$( pwd)
20
- bs=${BASH_SOURCE[0]}
21
- if [[ $0 == $bs ]] ; then
22
- echo " This script should be *sourced* rather than run directly through bash"
23
- exit 1
24
- fi
26
+ trap finish EXIT
27
+
28
+ export PATH=$HOME /.pyenv/bin/pyenv:$PATHb
29
+
25
30
mydir=$( dirname $bs )
26
31
fulldir=$( readlink -f $mydir )
27
32
cd $fulldir /..
28
33
(cd $fulldir /.. && checkout_version python-spark && checkout_version python-xdis &&
29
- checkout_version python-uncompyle6)
30
- cd $owd
31
- rm -v * /.python-version > /dev/null 2>&1 || true
34
+ checkout_version python-uncompyle6)
35
+
36
+ git pull
37
+ rm -v * /.python-version || true
38
+ finish
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # Check out python-2.4-to-2.7 and dependent development branches.
3
+
4
+ set -e
2
5
PYTHON_VERSION=2.4.6
3
6
7
+ bs=${BASH_SOURCE[0]}
8
+ if [[ $0 == $bs ]] ; then
9
+ echo " This script should be *sourced* rather than run directly through bash"
10
+ exit 1
11
+ fi
12
+
4
13
function checkout_version {
5
14
local repo=$1
6
- version=${2:- python-2.4}
7
- echo Checking out $version .4 on $repo ...
15
+ version=${2:- python-2.4-to-2.7 }
16
+ echo Checking out $version on $repo ...
8
17
(cd ../$repo && git checkout $version && pyenv local $PYTHON_VERSION ) && \
9
18
git pull
10
19
return $?
@@ -13,16 +22,16 @@ function checkout_version {
13
22
function finish {
14
23
cd $owd
15
24
}
16
-
17
25
owd=$( pwd)
18
- bs=${BASH_SOURCE[0]}
19
- if [[ $0 == $bs ]] ; then
20
- echo " This script should be *sourced* rather than run directly through bash"
21
- exit 1
22
- fi
26
+ trap finish EXIT
27
+
28
+ export PATH=$HOME /.pyenv/bin/pyenv:$PATH
29
+
23
30
mydir=$( dirname $bs )
24
31
fulldir=$( readlink -f $mydir )
25
32
(cd $fulldir /.. && checkout_version python-spark && checkout_version python-xdis python-2.4-to-2.7 &&
26
- checkout_version python-uncompyle6)
33
+ checkout_version python-uncompyle6)
34
+
35
+ git pull
27
36
rm -v * /.python-version || true
28
37
finish
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # Check out python-3.0-to-3.2 and dependent development branches.
3
+
2
4
set -e
3
5
PYTHON_VERSION=3.0.1
4
- pyenv local $PYTHON_VERSION
6
+
7
+ bs=${BASH_SOURCE[0]}
8
+ if [[ $0 == $bs ]] ; then
9
+ echo " This script should be *sourced* rather than run directly through bash"
10
+ exit 1
11
+ fi
5
12
6
13
# FIXME put some of the below in a common routine
7
14
function checkout_version {
@@ -16,21 +23,17 @@ function checkout_version {
16
23
function finish {
17
24
cd $owd
18
25
}
26
+ owd=$( pwd)
27
+ trap finish EXIT
19
28
20
29
export PATH=$HOME /.pyenv/bin/pyenv:$PATH
21
- owd=$( pwd)
22
- bs=${BASH_SOURCE[0]}
23
- if [[ $0 == $bs ]] ; then
24
- echo " This script should be *sourced* rather than run directly through bash"
25
- exit 1
26
- fi
27
30
28
31
mydir=$( dirname $bs )
29
32
fulldir=$( readlink -f $mydir )
30
33
cd $fulldir /..
31
34
(cd $fulldir /.. && checkout_version python-spark master && checkout_version python-xdis &&
32
35
checkout_version python-uncompyle6)
33
36
34
- git checkout python-3.0-to-3.2 && git pull && pyenv local $PYTHON_VERSION
37
+ git pull
35
38
rm -v * /.python-version || true
36
39
finish
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # Check out python-3.3-to-3.5 and dependent development branches.
2
3
set -e
3
4
PYTHON_VERSION=3.3.7
4
- pyenv local $PYTHON_VERSION
5
+
6
+ bs=${BASH_SOURCE[0]}
7
+ if [[ $0 == $bs ]] ; then
8
+ echo " This script should be *sourced* rather than run directly through bash"
9
+ exit 1
10
+ fi
5
11
6
12
# FIXME put some of the below in a common routine
7
13
function checkout_version {
@@ -16,22 +22,17 @@ function checkout_version {
16
22
function finish {
17
23
cd $owd
18
24
}
25
+ owd=$( pwd)
26
+ trap finish EXIT
19
27
20
28
export PATH=$HOME /.pyenv/bin/pyenv:$PATH
21
- owd=$( pwd)
22
- bs=${BASH_SOURCE[0]}
23
- if [[ $0 == $bs ]] ; then
24
- echo " This script should be *sourced* rather than run directly through bash"
25
- exit 1
26
- fi
27
29
28
- mydir=$( dirname $bs )
29
30
fulldir=$( readlink -f $mydir )
30
31
cd $fulldir /..
31
32
(cd $fulldir /.. && checkout_version python-spark master && checkout_version python-xdis &&
32
33
checkout_version python-uncompyle6)
33
34
rm -v * /.python-version || true
34
35
35
- git checkout python-3.3-to-3.5 && git pull && pyenv local $PYTHON_VERSION
36
+ git pull
36
37
rm -v * /.python-version || true
37
38
finish
You can’t perform that action at this time.
0 commit comments