Skip to content

Commit ec3ef23

Browse files
committed
Fix travis configuration for python3
1 parent d3658f2 commit ec3ef23

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,5 @@ isolationcheck: | submake-isolation
7474
--temp-config=$(top_srcdir)/$(subdir)/conf.add \
7575
--outputdir=./isolation_output \
7676
$(ISOLATIONCHECKS)
77+
partitioning_tests:
78+
$(MAKE) -C tests/python partitioning_tests

travis/apt.postgresql.org.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ EOF
126126

127127
echo "Running apt-get update ..."
128128
apt-get update
129+
apt-get install python3
129130

130131
cat <<EOF
131132

travis/pg-travis-test.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ source /tmp/envs/pg_pathman/bin/activate
9898
pip install $pip_packages
9999

100100
# run python tests
101-
cd tests/python
102-
PG_CONFIG=$config_path python -m unittest partitioning_test || status=$?
103-
cd ../..
101+
make USE_PGXS=1 PG_CONFIG=$config_path partitioning_tests || status=$?
104102

105103
set -u
106104

0 commit comments

Comments
 (0)