Define a testing mode to wrap Homebrew uninstallation and cleanup

This commit should allow people to keep on using this installation script. A
TESTING_MODE flag is defined conditionally to the presence of a JOB_NAME
variable by default (but can be overriden). The Homebrew/pip uninstallation
and cleanup operations as well as the PR merging step are only executed if
this flag is on.