在travis CI中更新SQLite

Qub*_*uba 9 python sqlite 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
Run Code Online (Sandbox Code Playgroud)

这里的资源被忽略了

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
Run Code Online (Sandbox Code Playgroud)
  • 并在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
Run Code Online (Sandbox Code Playgroud)

错误:

Cannot add PPA: 'ppa:travis-ci/sqlite3'.
Please check that the PPA name or format is correct.
Run Code Online (Sandbox Code Playgroud)

我如何使它工作?

来源 https://github.com/travis-ci/apt-package-safelist/issues/368#issuecomment-198586476

Ant*_*hov 11

将构建环境更新为Xenial。Trusty仅包含SQLite 3.8.2

dist: xenial
language: python
...
Run Code Online (Sandbox Code Playgroud)

更新的完整示例