amneale/phpspec-ci-coverage

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
env:
  global:
    - 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)

language: php
php:
  - '7.0'

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

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

before_script:
  - ./cc-test-reporter before-build

script:
  - ./vendor/bin/phpspec run --format=dot

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