1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-02-08 14:28:36 +02:00

travis: move to python3

This commit is contained in:
Grigory Smolkin 2021-06-17 21:31:30 +03:00
parent 423ffcaf38
commit 6506eade26
2 changed files with 7 additions and 7 deletions

View File

@ -2,11 +2,11 @@ FROM ololobus/postgres-dev:stretch
USER root
RUN apt-get update
RUN apt-get -yq install python python-pip
RUN apt-get -yq install python3 python3-pip
# RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
# RUN python2 get-pip.py
RUN python2 -m pip install virtualenv
RUN python3 -m pip install virtualenv
# Environment
ENV PG_MAJOR=${PG_VERSION} PG_BRANCH=${PG_BRANCH}

View File

@ -67,17 +67,17 @@ make USE_PGXS=1 top_srcdir=$PG_SRC install
# Setup python environment
echo "############### Setting up python env:"
python2 -m virtualenv pyenv
python3 -m virtualenv pyenv
source pyenv/bin/activate
pip install testgres==1.8.2
pip3 install testgres
echo "############### Testing:"
if [ "$MODE" = "basic" ]; then
export PG_PROBACKUP_TEST_BASIC=ON
python -m unittest -v tests
python -m unittest -v tests.init
python3 -m unittest -v tests
python3 -m unittest -v tests.init
else
python -m unittest -v tests.$MODE
python3 -m unittest -v tests.$MODE
fi
# Generate *.gcov files