itsDamien/laravel-api-controller

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

php:
  - 5.6
  - 7.0
  - 7.1
  - 7.2
  - hhvm

dist: trusty
sudo: false

before_install:
  - travis_retry composer self-update

install:
  - travis_retry composer install

before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build

script:
  - mkdir -p build/logs
  - vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_success:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

notifications:
  email:
    on_success: never
    on_failure: always