Browse code

use travis cache for composer and fast finish

Tobias Schultze authored on 21/08/2015 14:45:51
Showing 1 changed files
... ...
@@ -2,25 +2,27 @@ language: php
2 2
 
3 3
 sudo: false
4 4
 
5
+cache:
6
+    directories:
7
+        - vendor
8
+        - $HOME/.composer/cache
9
+
5 10
 php:
6 11
     - 5.2
7 12
     - 5.3
8 13
     - 5.4
9 14
     - 5.5
10 15
     - 5.6
16
+    - 7.0
11 17
     - hhvm
12
-    - nightly
13 18
 
14 19
 env:
15 20
     - TWIG_EXT=no
16 21
     - TWIG_EXT=yes
17 22
 
18
-before_install:
19
-    - if [ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]; then composer self-update; fi
20
-
21 23
 install:
22 24
     # Composer is not available on PHP 5.2
23
-    - if [ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]; then travis_retry composer install --prefer-source; fi
25
+    - if [ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]; then travis_retry composer install; fi
24 26
 
25 27
 before_script:
26 28
     - if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && make install"; fi
... ...
@@ -28,9 +30,10 @@ before_script:
28 30
     - if [ ${TRAVIS_PHP_VERSION:0:3} == "5.2" ]; then sed -i.bak "s|vendor/autoload.php|test/bootstrap.php|" phpunit.xml.dist; fi
29 31
 
30 32
 matrix:
33
+    fast_finish: true
31 34
     exclude:
32 35
         - php: hhvm
33 36
           env: TWIG_EXT=yes
34 37
     allow_failures:
35
-        - php: nightly
38
+        - php: 7.0
36 39
           env: TWIG_EXT=yes