在 python 3.6 和 3.7 (django 2.2) 上我得到
django.core.exceptions.ImproperlyConfigured:需要 SQLite 3.8.3 或更高版本(找到 3.8.2)。
在 TravisCI 上
我做了什么
- 我尝试使用插件安装它:
addons:
apt:
sources:
- travis-ci/sqlite3
packages:
- sqlite3
这里的资源被忽略了
Disallowing sources: travis-ci/sqlite3
To add unlisted APT sources, follow instructions in https://docs.travis-ci.com/user/installing-dependencies#Installing-Packages-with-the-APT-Addon
- 并在 before_install 中使用 ppa
before_install:
- sudo apt-add-repository -y ppa:travis-ci/sqlite3
- sudo apt-get -y update
- sudo apt-get -y install sqlite3=3.7.15.1-1~travis1
错误:
Cannot add PPA: 'ppa:travis-ci/sqlite3'.
Please check that the PPA name or format is correct.
我怎样才能让它工作?
来源 https://github.com/travis-ci/apt-package-safelist/issues/368#issuecomment-198586476
最佳答案
将构建环境更新为 Xenial . Trusty 仅包含 SQLite 3.8.2 .
dist: xenial
language: python
...
关于python - 在 travis CI 中更新 SQLite,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55521832/