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:
parent
423ffcaf38
commit
6506eade26
@ -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}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user