Skip to content

Commit 09958c9

Browse files
committed
Disable JIT on CI Postgres to make wheel tests predictable
1 parent 2326153 commit 09958c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.ci/travis-before-install.sh

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD}" == *wheels* ]]; then
1919
sudo tee --append /etc/postgresql/${PGVERSION}/main/postgresql.conf
2020
echo "host all all 172.17.0.0/16 trust" | \
2121
sudo tee --append /etc/postgresql/${PGVERSION}/main/pg_hba.conf
22+
23+
if [ "${PGVERSION}" -ge "11" ]; then
24+
# Disable JIT to avoid unpredictable timings in tests.
25+
echo "jit = off" | \
26+
sudo tee --append /etc/postgresql/${PGVERSION}/main/postgresql.conf
27+
fi
2228
fi
2329

2430
sudo service postgresql start ${PGVERSION}

0 commit comments

Comments
 (0)