Try to fix the matrix
[m6w6/ext-pq] / .travis.yml
index aa43ef0cd7e56bc102d2dfce5df993d2af26c159..082be1e492a7c2c8b9ec048d86dbe3632eb97514 100644 (file)
@@ -1,7 +1,9 @@
 language: c
 
 addons:
-    postgresql: "9.3"
+    apt:
+        packages:
+            - libpq-dev
 
 env:
     global:
@@ -19,9 +21,16 @@ env:
         - PHP_TARGET_REF=PHP-5.6 PHP_CONFIGURE_OPTS=""
         - PHP_TARGET_REF=PHP-5.6 PHP_CONFIGURE_OPTS="--enable-maintainer-zts"
 
-before_install:
-    - sudo apt-get update -qq
-    - sudo apt-get install -qq libpq-dev
+matrix:
+    include:
+        - addons:
+            postgresql: 9.1
+        - addons:
+            postgresql: 9.2
+        - addons:
+            postgresql: 9.3
+        - addons:
+            postgresql: 9.4
 
 before_script:
     - ./travis/compile-php.sh
@@ -31,3 +40,5 @@ before_script:
 
 script:
     - $HOME$BUILD_INSTALL_DIR/bin/php ./run-tests.php -q -p $HOME$BUILD_INSTALL_DIR/bin/php --show-diff
+
+sudo: false