yrizos/stockpile

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

php:
  - 5.4

services:
  - memcached

before_install: phpenv config-add ./tests/.travis.php.ini

install:
  - composer install
  - composer require codeclimate/php-test-reporter:dev-master

before_script: mkdir -p build/logs

script: phpunit --configuration ./tests/phpunit.xml --coverage-clover ./build/logs/clover.xml

after_script:
  - CODECLIMATE_REPO_TOKEN=7818a8ed07e6f0309ecbd361ff421e9cba1bca43487cc5ee5d855f7803ddec3d ./vendor/bin/test-reporter --stdout > codeclimate.json
  - "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports"