Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6506ead

Browse files
committed
travis: move to python3
1 parent 423ffca commit 6506ead

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

travis/Dockerfile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ FROM ololobus/postgres-dev:stretch
22

33
USER root
44
RUN apt-get update
5-
RUN apt-get -yq install python python-pip
5+
RUN apt-get -yq install python3 python3-pip
66

77
# RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
88
# RUN python2 get-pip.py
9-
RUN python2 -m pip install virtualenv
9+
RUN python3 -m pip install virtualenv
1010

1111
# Environment
1212
ENV PG_MAJOR=${PG_VERSION} PG_BRANCH=${PG_BRANCH}

travis/run_tests.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@ make USE_PGXS=1 top_srcdir=$PG_SRC install
6767

6868
# Setup python environment
6969
echo "############### Setting up python env:"
70-
python2 -m virtualenv pyenv
70+
python3 -m virtualenv pyenv
7171
source pyenv/bin/activate
72-
pip install testgres==1.8.2
72+
pip3 install testgres
7373

7474
echo "############### Testing:"
7575
if [ "$MODE" = "basic" ]; then
7676
export PG_PROBACKUP_TEST_BASIC=ON
77-
python -m unittest -v tests
78-
python -m unittest -v tests.init
77+
python3 -m unittest -v tests
78+
python3 -m unittest -v tests.init
7979
else
80-
python -m unittest -v tests.$MODE
80+
python3 -m unittest -v tests.$MODE
8181
fi
8282

8383
# Generate *.gcov files

0 commit comments

Comments
 (0)