Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 131bd3d

Browse files
committed
fix virtualenv initialization
1 parent be10b79 commit 131bd3d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Dockerfile.tmpl

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ RUN if [ "${PYTHON_VERSION}" = "3" ] ; then \
1010
ENV LANG=C.UTF-8
1111

1212
RUN mkdir -p /pg
13-
VOLUME /pg
1413
COPY run_tests.sh /run.sh
1514
RUN chmod 755 /run.sh
1615

1716
ADD . /pg/testgres
1817
WORKDIR /pg/testgres
19-
RUN chown postgres:postgres /pg/testgres
18+
RUN chown -R postgres:postgres /pg
2019

2120
USER postgres
2221
ENTRYPOINT PYTHON=${PYTHON} /run.sh

run_tests.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@ else
1313
fi
1414

1515
# prepare environment
16-
echo using $virtualenv
16+
cd ..
1717
$virtualenv env
18+
export VIRTUAL_ENV_DISABLE_PROMPT=1
1819
source env/bin/activate
20+
cd -
1921

2022
# install utilities
2123
$pip install coverage codecov flake8
2224

2325
# install testgres
24-
$pip install -U .
26+
$pip install .
2527

2628
# test code quality
2729
flake8 .

0 commit comments

Comments
 (0)