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

Commit 1126cc2

Browse files
committed
Use virtualenv in tests
1 parent 9a693d4 commit 1126cc2

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ pg_pathman--*.sql
1313
tags
1414
cscope*
1515
Dockerfile
16+
testgres

Dockerfile.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN if [ "${CHECK_CODE}" = "cppcheck" ] ; then \
1414
RUN if [ "${CHECK_CODE}" = "false" ] ; then \
1515
echo 'http://dl-3.alpinelinux.org/alpine/edge/main' > /etc/apk/repositories; \
1616
apk --no-cache add curl python3 gcc make musl-dev cmocka-dev;\
17+
pip3 install virtualenv;\
1718
fi
1819

1920
RUN mkdir -p /pg/data && \

run_tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ elif [ "$CHECK_CODE" = "cppcheck" ]; then
3636
fi
3737

3838
# we need testgres for pathman tests
39+
virtualenv env
40+
source env/bin/activate
3941
pip3 install testgres
4042
pip3 freeze | grep testgres
4143

0 commit comments

Comments
 (0)