Skip to content

Instantly share code, notes, and snippets.

@lsolesen
Created December 14, 2010 08:01
Show Gist options
  • Select an option

  • Save lsolesen/740129 to your computer and use it in GitHub Desktop.

Select an option

Save lsolesen/740129 to your computer and use it in GitHub Desktop.
run phpunit if git repos has been updated
#!/usr/bin/env bash
UPDATE=$(git pull origin master)
if [[ ${UPDATE} == "Updating*" ]]; then
cd /home/intraface_test/intraface-git/tests
phpunit --process-isolation --log-tap /home/intraface_test/test.intraface.dk/testresult . > /dev/null
cd /home/intraface_test
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment