X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=blobdiff_plain;f=.travis.yml;h=a3bc2413c861529a081667fd45d8c523ec19d492;hp=d1f382bc9f79f89bef02996ee88f26e0967ba564;hb=45fc87bdf32110a196e050a238f2f78833e515f6;hpb=0de3e04c1c3c8e824d799a7ba219ec50a3fccb64 diff --git a/.travis.yml b/.travis.yml index d1f382b..a3bc241 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,13 +6,10 @@ branches: only: - master -# Prefer docker containers -sudo: required - language: python python: - - "3.6" + - "2.7" cache: pip @@ -23,24 +20,52 @@ addons: - python3-psycopg2 postgresql: "9.4" -env: - - TOXENV=py27 - - TOXENV=py34 - - TOXENV=py35 - - TOXENV=py36 - - TOXENV=py27-postgres - - TOXENV=py34-postgres - - TOXENV=py35-postgres - - TOXENV=py36-postgres - - TOXENV=py27-sqlite - - TOXENV=py34-sqlite - - TOXENV=py35-sqlite - - TOXENV=py36-sqlite - - TOXENV=py27-flake8 - - TOXENV=py34-flake8 +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