]> git.phdru.name Git - sqlconvert.git/blobdiff - .travis.yml
Use ppu to cleanup pip cache
[sqlconvert.git] / .travis.yml
index 6b5a49eae960481be5c36030af1573d98b3be340..5a2588301ac687ec6697e8975be36579d808b08b 100644 (file)
@@ -16,11 +16,22 @@ python:
 
 cache: pip
 
+addons:
+  apt:
+    packages:
+      - python-psycopg2
+      - 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
@@ -29,7 +40,10 @@ env:
   - TOXENV=py34-flake8
 
 install:
-  - travis_retry pip install tox
+  - travis_retry pip install tox ppu
 
 script:
   - tox
+
+before_cache:
+  - remove-old-files.py -o 180 ~/.cache/pip