]> git.phdru.name Git - sqlconvert.git/blobdiff - .travis.yml
Tests: Require tox < 3.1 to avoid basepython conflicts
[sqlconvert.git] / .travis.yml
index 52178640e2d8153c5ad7f596cdd58b87a718be03..b240f97bab00f3881c3c73e850509aab7ea16c4b 100644 (file)
@@ -12,18 +12,63 @@ sudo: required
 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"
+    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 setuptools tox ppu
 
 script:
   - tox
+
+before_cache:
+  - remove-old-files.py -o 180 ~/.cache/pip