diff --git a/.travis.yml b/.travis.yml
index 4500d745cba5cd946edb46ebbbc607928141e3d6..a3875f29e99447826ba88666c27c391c7d3767fd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,10 +13,13 @@ php:
   - 5.6
   - 7.0
 env:
-  - TEST_SUITE=unit
-  - TEST_SUITE=integration INTEGRATION_INDEX=1 INTEGRATION_SETS=2
-  - TEST_SUITE=integration INTEGRATION_INDEX=2 INTEGRATION_SETS=2
-  - TEST_SUITE=static
+  global:
+    - INTEGRATION_SETS=2
+  matrix:
+    - TEST_SUITE=unit
+    - TEST_SUITE=integration INTEGRATION_INDEX=1
+    - TEST_SUITE=integration INTEGRATION_INDEX=2
+    - TEST_SUITE=static
 cache:
   apt: true
   directories: