X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=blobdiff_plain;f=.travis.yml;h=53ebf0a1557a654a5769da2880b203834cf55e1f;hp=52178640e2d8153c5ad7f596cdd58b87a718be03;hb=96c2cb6da5a7b7f4c13043f746636a36cfeb6c5e;hpb=6a7fc02ce62d01ca66f3bc2207941a4cc7fc8d6b diff --git a/.travis.yml b/.travis.yml index 5217864..53ebf0a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,29 +1,69 @@ -# Config file for automatic testing at travis-ci.org +os: linux -# Only test master and pull requests; skip tags. -# Other branches can allow themselves. -branches: - only: - - master - -# Prefer docker containers -sudo: required +dist: xenial language: python python: - - "3.6" + - "2.7" cache: pip -env: - - TOXENV=py27 - - TOXENV=py34 - - TOXENV=py35 - - TOXENV=py36 +addons: + apt: + packages: + - python-psycopg2 + - python3-psycopg2 + postgresql: "9.4" + +matrix: + include: + - python: "2.7" + env: TOXENV=py27 + - python: "3.4" + env: TOXENV=py34 + - python: "3.5" + env: TOXENV=py35 + - python: "3.6" + env: TOXENV=py36 + - python: "3.7" + env: TOXENV=py37 + - python: "3.8" + env: TOXENV=py38 + - python: "2.7" + env: TOXENV=py27-postgres + - python: "3.4" + env: TOXENV=py34-postgres + - python: "3.5" + env: TOXENV=py35-postgres + - python: "3.6" + env: TOXENV=py36-postgres + - python: "3.7" + env: TOXENV=py37-postgres + - python: "3.8" + env: TOXENV=py38-postgres + - python: "2.7" + env: TOXENV=py27-sqlite + - python: "3.4" + env: TOXENV=py34-sqlite + - python: "3.5" + env: TOXENV=py35-sqlite + - python: "3.6" + env: TOXENV=py36-sqlite + - python: "3.7" + env: TOXENV=py37-sqlite + - python: "3.8" + env: TOXENV=py38-sqlite + - python: "2.7" + env: TOXENV=py27-flake8 + - python: "3.8" + env: TOXENV=py38-flake8 install: - - travis_retry pip install tox + - travis_retry pip install --upgrade "pip<21" "setuptools<44" tox ppu script: - tox + +before_cache: + - remove-old-files.py -o 180 ~/.cache/pip