sehrgutesoftware/laravel5-api

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php
php:
  - '7.1'
  - '7.2'
install:
  - composer install --prefer-dist
script:
  - vendor/bin/phpunit --coverage-clover=coverage.xml
  - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT || true; fi
before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
env:
  global:
    - CC_TEST_REPORTER_ID=3e3617d49d67177a300f82b6b0702e0273f2d2f36700c2356b79919ea3ce2951
    - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
    - CODECLIMATE_REPO_TOKEN=3e3617d49d67177a300f82b6b0702e0273f2d2f36700c2356b79919ea3ce2951