Skip to content

Instantly share code, notes, and snippets.

@sebastiandedeyne
Last active April 12, 2017 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastiandedeyne/5d110b58a404918e8894f353c42de417 to your computer and use it in GitHub Desktop.
Save sebastiandedeyne/5d110b58a404918e8894f353c42de417 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
function pw {
run="clear && printf '\e[3J' && vendor/bin/phpunit"
[[ -n $@ ]] && args=$@ || args="tests"
eval "$run $args"
watchman-make \
-p 'src/**/*.php' 'tests/**/*.php' \
--make=$run \
-t "$args"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment