Commit c4d6eda0 by John Eskew

Install recent version of sqlite/pysqlite to fix crashes in tests.

parent 82ad9295
#!/bin/bash
# Upgrade the version of pysqlite/sqlite to avoid crashes during testing.
# Ideally, this code would just install a pre-built wheel - change it to this
# once edX has its own artifact server.
pip uninstall -y pysqlite
rm -rf tmp_pysqlite_upgrade && mkdir -p tmp_pysqlite_upgrade && cd tmp_pysqlite_upgrade
curl -o 2.8.3.tar.gz https://codeload.github.com/ghaering/pysqlite/tar.gz/2.8.3
curl -o sqlite-autoconf-3140100.tar.gz https://www.sqlite.org/2016/sqlite-autoconf-3140100.tar.gz
tar -xzvf sqlite-autoconf-3140100.tar.gz
tar -xzvf 2.8.3.tar.gz
cp -av sqlite-autoconf-3140100/. pysqlite-2.8.3/
cd ./pysqlite-2.8.3 && python setup.py build_static install
cd ../.. && rm -rf tmp_pysqlite_upgrade
......@@ -60,5 +60,12 @@ deps =
-rrequirements/edx-sandbox/base.txt
-rrequirements/edx-sandbox/local.txt
-rrequirements/edx-sandbox/post.txt
whitelist_externals =
/bin/bash
/usr/bin/curl
/bin/tar
commands =
# Upgrade sqlite to fix crashes during testing.
bash scripts/upgrade_pysqlite.sh
# Now perform testing.
{posargs}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment