This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Install Git ######################################### | |
apt-get install git | |
## Install Ant ######################################### | |
apt-get install ant | |
## Install Jenkins ##################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Watchr config script to run phing tests every time you save PHP or fixtures. | |
# See http://criticallog.thornet.net/2011/03/08/autotesting-with-watchr-growl-and-phpunit/ | |
# | |
watch('./(.*).(php|inc)') { |m| code_changed(m[0]) } | |
watch('./fixtures.sql') { |m| code_changed(m[0]) } | |
watch('phpdebug_trigger') { |m| code_changed(m[0]) } | |
def code_changed(file) | |
run "phing test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Script to check the status of the last test run & cancel the commit if there are any errors or failures | |
RESULTS="tests/reports/testsuites.xml" | |
# Check the test results exist, and have results in them. | |
if [ ! -s $RESULTS ] | |
then | |
echo "WTF is this shit? You've not even tried to run the tests. You suck, man." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Add this to your /etc/bash_completion.d directory for behat parameter auto completion. | |
# | |
_behat() | |
{ | |
local cur prev opts | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildstats@buildstats-desktop:~/statsd$ node stats.js config.json | |
/home/buildstats/statsd/config.js:2 | |
"graphitePort": 2003, | |
^ | |
SyntaxError: Unexpected token : | |
at Module._compile (node.js:458:37) | |
at Module._loadScriptSync (node.js:469:10) | |
at Module.loadSync (node.js:338:12) | |
at loadModule (node.js:283:14) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "ruby-growl" | |
watch ('project/(.*).py') {|md| code_changed "#{md[0]}"} | |
def code_changed(file) | |
# Get the path of the file that changed | |
dir = File.dirname(file) | |
test(dir) | |
end |
NewerOlder