Fahl-Design/log4php-slack-appender

View on GitHub
build/script/travis_before_install.sh

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash
set -e
trap '>&2 echo Error: Command \`$BASH_COMMAND\` on line $LINENO failed with exit code $?' ERR

## backup and disable xdebug
if [[ $RUN_WITH_COVERAGE == 'true' ]]; then
cp ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ~/.phpenv/versions/$(phpenv version-name)/xdebug.ini.bak
echo > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
phpenv rehash
fi
# create directories for the tests
mkdir -p "$HOME/.php-cs-fixer"

git config --global user.name travis-ci
git config --global user.email travis@webproject.xyz
if [[ $RUN_WITH_COVERAGE == 'true' ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; fi
if [[ $RUN_WITH_COVERAGE == 'true' ]]; then chmod +x ./cc-test-reporter; fi
if [[ $RUN_WITH_COVERAGE == 'true' && $(phpenv version-name) = "7.2" ]]; then ./cc-test-reporter before-build; fi