Fahl-Design/log4php-slack-appender

View on GitHub
build/script/travis_script.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

# run static php-cs-fixer code analysis
./vendor/bin/php-cs-fixer fix --dry-run --diff --verbose

## run the tests with no coverage
if [[ $RUN_WITH_COVERAGE != 'true' ]]; then composer run-tests; fi

## run the tests with no coverage
## enable xdebug again
./vendor/bin/codecept build
if [[ $RUN_WITH_COVERAGE == 'true' ]]; then mv ~/.phpenv/versions/$(phpenv version-name)/xdebug.ini.bak ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini; fi
if [[ $RUN_WITH_COVERAGE == 'true' ]]; then composer coverage; fi
if [[ $RUN_WITH_COVERAGE == 'true' ]]; then bash <(curl -s https://codecov.io/bash) -Z ; fi
if [[ $RUN_WITH_COVERAGE == 'true' ]]; then php vendor/bin/codacycoverage clover build/logs/coverage.xml ; fi