DamienHarper/NavigationBundle

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

sudo: false

branches:
    only:
        - master

cache:
    directories:
        - $HOME/.composer/cache

php:
    - 7.2
    - 7.3
    - 7.4

before_install:
    - composer self-update

install:
    - COMPOSER_MEMORY_LIMIT=-1 composer update $COMPOSER_FLAGS --prefer-dist

before_script:
    - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
    - chmod +x ./cc-test-reporter
    - if [ $(phpenv version-name) = "7.3" ]; then ./cc-test-reporter before-build; fi

script:
    - ./vendor/bin/phpunit --coverage-clover clover.xml

after_script:
    - if [ $(phpenv version-name) = "7.3" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi

matrix:
    fast_finish: true