PHPixie/Database

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
sudo: false
language: "php"

php:
  - 7.2
  - 7.3
  - 7.4

before_script: 
- "composer require codeclimate/php-test-reporter --dev"
- "composer install"

script: 
- "./vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml"

after_script:
- CODECLIMATE_REPO_TOKEN="78b75afde0c8fe0bd9e6b81fbc2db0dbe4ed407ed65de25f8572d6515d92c09a" vendor/bin/test-reporter --stdout > codeclimate.json
- "sh -c 'if [ \"$TRAVIS_PHP_VERSION\" != \"hhvm\" ]; then 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  ; fi'"