Avoid duplicate travis builds of feature/bug branches
[kohana-image.git] / .travis.yml
blob190f441395ce174122e5e6259020701cddfe085b
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 php:
11   - 5.3
12   - 5.4
13   - 5.5
14   - 5.6
15   - 7.0
16   - hhvm
18 matrix:
19   include:
20     - php: 5.3
21       env: 'COMPOSER_PHPUNIT="lowest"'
23 before_script:
24   - composer install --prefer-dist
25   - if [ "$COMPOSER_PHPUNIT" = "lowest" ]; then composer update --prefer-lowest --with-dependencies phpunit/phpunit; fi;
26   - vendor/bin/koharness
28 script:
29   - cd /tmp/koharness && ./vendor/bin/phpunit --bootstrap=modules/unittest/bootstrap.php modules/unittest/tests.php
31 notifications:
32   email: false