Shorter travis-ci script
Make formatting function customizable