python - 在 travis CI 中更新 SQLite

标签 python sqlite travis-ci

在 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
...

The full example of updating .

关于python - 在 travis CI 中更新 SQLite,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55521832/

相关文章:

python - 如何使用 Python 将八进制转换为十进制

python - celery 错过了心跳(on_node_lost)

python - 将自定义文件格式读取到 Dask 数据框

android - Mysql查询对应的Sqlite查询语法

go - 如何在 travis-ci 上使用远程包 |走

cordova - Travis 通过cordova 为ios 和android 构建

python - 在 python 中比较列表和元组

c++ - 通过rowid有效检索SQLite行

java - Travis 上的 Gradle "no suitable constructor found"

Android如何在普通字符串数组中打印sqlite数据?