在 travis 中更新 SQLite CI
Update SQLite in travis CI
在 python 3.6 和 3.7 (django 2.2) 我得到
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 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 contains only SQLite 3.8.2。
dist: xenial
language: python
...
在 python 3.6 和 3.7 (django 2.2) 我得到
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 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 contains only SQLite 3.8.2。
dist: xenial
language: python
...