Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit88bea54

Browse files
committed
travis: move to python3
1 parent5f54e62 commit88bea54

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 installpython python-pip
5+
RUN apt-get -yq installpython3 python3-pip
66

77
# RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
88
# RUN python2 get-pip.py
9-
RUNpython2 -m pip install virtualenv
9+
RUNpython3 -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)

[8]ページ先頭

©2009-2025 Movatter.jp