Geek Culture
Published in

Geek Culture

Display Build Status and Test Coverage Badges for a Laravel Project

A guide I wished I had

Setup repo with Travis CI and Coveralls

Configure PHPUnit and Coveralls

composer require php-coveralls/php-coveralls
"php-coveralls/php-coveralls": "^1.1"

Create a .travis.yml and .coveralls.yml

coverage_clover: build/logs/clover.xml
json_path: build/logs/coveralls-upload.json
service_name: travis-ci

Deploy code and display badges

[![Build Status](https://travis-ci.com/chyke007/credible.svg?branch=master)](https://travis-ci.com/chyke007/credible)
[![Coverage Status](https://coveralls.io/repos/github/chyke007/credible/badge.svg?branch=master)](https://coveralls.io/github/chyke007/credible?branch=master)

--

--

A new tech publication by Start it up (https://medium.com/swlh).

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nwachukwu Chibuike

Full-stack developer, technical writer and lover of Jamstack. Passionate about lifelong learning.