X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=blobdiff_plain;f=.travis.yml;h=fc18d5cf48f4b76f3c442ba7f004c326b4464db0;hp=d1f382bc9f79f89bef02996ee88f26e0967ba564;hb=929182a92d4ab0f697a151d0a6d613d17a72c078;hpb=0de3e04c1c3c8e824d799a7ba219ec50a3fccb64 diff --git a/.travis.yml b/.travis.yml index d1f382b..fc18d5c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,11 @@ -# 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 @@ -23,24 +16,54 @@ 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" + 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<19.1" "setuptools<44" tox ppu script: - tox + +before_cache: + - remove-old-files.py -o 180 ~/.cache/pip