Cache composer dependencies to speed up travis builds
[kohana-image.git] / .travis.yml
blobdacfadbf0ba09a50a4edcabbb5314bf8c7ff56d1
1 sudo: false
3 language: php
5 # Only build the main develop/master branches - feature branches will be covered by PRs
6 branches:
7   only:
8     - /^[0-9\.]+\/(develop|master)$/
10 cache:
11   directories:
12     - vendor
13     - $HOME/.composer/cache
15 php:
16   - 5.3
17   - 5.4
18   - 5.5
19   - 5.6
20   - 7.0
21   - hhvm
23 matrix:
24   include:
25     - php: 5.3
26       env: 'COMPOSER_PHPUNIT="lowest"'
28 before_script:
29   - composer install --prefer-dist
30   - if [ "$COMPOSER_PHPUNIT" = "lowest" ]; then composer update --prefer-lowest --with-dependencies phpunit/phpunit; fi;
31   - vendor/bin/koharness
33 script:
34   - cd /tmp/koharness && ./vendor/bin/phpunit --bootstrap=modules/unittest/bootstrap.php modules/unittest/tests.php
36 notifications:
37   email: false