X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=blobdiff_plain;f=.travis.yml;h=ddc93951d97f11da52a4fa723c49c54a4125ad37;hp=6b5a49eae960481be5c36030af1573d98b3be340;hb=722b2423e29d39101e4e298856b8839d2a57fc17;hpb=f5bc1166430a10995e541ab263cb22634c7d9da4 diff --git a/.travis.yml b/.travis.yml index 6b5a49e..ddc9395 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,35 +1,63 @@ -# Config file for automatic testing at travis-ci.org - -# Only test master and pull requests; skip tags. -# Other branches can allow themselves. -branches: - only: - - master - -# Prefer docker containers -sudo: required - language: python python: - - "3.6" + - "2.7" cache: pip -env: - - TOXENV=py27 - - TOXENV=py34 - - TOXENV=py35 - - TOXENV=py36 - - TOXENV=py27-sqlite - - TOXENV=py34-sqlite - - TOXENV=py35-sqlite - - TOXENV=py36-sqlite - - TOXENV=py27-flake8 - - TOXENV=py34-flake8 +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" + dist: xenial + env: TOXENV=py37 + - 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" + dist: xenial + env: TOXENV=py37-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" + dist: xenial + env: TOXENV=py37-sqlite + - python: "2.7" + env: TOXENV=py27-flake8 + - python: "3.7" + dist: xenial + env: TOXENV=py37-flake8 install: - - travis_retry pip install tox + - travis_retry pip install --upgrade "pip < 19.1" setuptools tox ppu script: - tox + +before_cache: + - remove-old-files.py -o 180 ~/.cache/pip