Skip to content

Commit

Permalink
Disable JIT on CI Postgres to make wheel tests predictable
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans committed Oct 9, 2019
1 parent 2326153 commit 09958c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ci/travis-before-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD}" == *wheels* ]]; then
sudo tee --append /etc/postgresql/${PGVERSION}/main/postgresql.conf
echo "host all all 172.17.0.0/16 trust" | \
sudo tee --append /etc/postgresql/${PGVERSION}/main/pg_hba.conf

if [ "${PGVERSION}" -ge "11" ]; then
# Disable JIT to avoid unpredictable timings in tests.
echo "jit = off" | \
sudo tee --append /etc/postgresql/${PGVERSION}/main/postgresql.conf
fi
fi

sudo service postgresql start ${PGVERSION}
Expand Down

0 comments on commit 09958c9

Please sign in to comment.