This file contains hidden or 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 | |
# Located at: http://gist.github.com/359405 | |
source $WORKSPACE/../../../virtualenvs/$JOB_NAME/bin/activate | |
./scripts/clean.sh; | |
# Delete the database so Django doesn't prompt us yes/no to continue | |
echo "CREATE DATABASE IF NOT EXISTS $JOB_NAME DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;" | mysql -u root; | |
echo "DROP DATABASE IF EXISTS test_$JOB_NAME;" | mysql -u root; |
This file contains hidden or 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
/var/log/celery/*.log { | |
weekly | |
missingok | |
rotate 52 | |
compress | |
delaycompress | |
notifempty | |
copytruncate | |
} |
This file contains hidden or 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 | |
# http://gist.github.com/435108 | |
source $WORKSPACE/../../../virtualenvs/$JOB_NAME/bin/activate | |
./scripts/clean.sh; | |
echo "CREATE DATABASE IF NOT EXISTS $JOB_NAME DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;" | mysql -u root; | |
echo "DROP DATABASE IF EXISTS test_$JOB_NAME;" | mysql -u root; | |
rm --force #WORKSPACE/pstat/nosetests.xml; | |
python scripts/run_tests.py --coverage --django-sqlite; |
This file contains hidden or 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 | |
# http://gist.github.com/455967 | |
#### | |
## Generate coverage data for usage by Hudson and the violations plugin | |
#### | |
source $WORKSPACE/../../../virtualenvs/$JOB_NAME/bin/activate | |
cd pstat | |
coverage xml --omit $WORKSPACE/../../../virtualenvs,/usr/share,$WORKSPACE/pstat/pstat_deploy,$WORKSPACE/pstat/*/migrations |
This file contains hidden or 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
import logging | |
from selenium.firefox.webdriver import WebDriver | |
from django.conf import settings | |
from django.test import TestCase | |
djangoassets_logger = logging.getLogger('assets.cssutils') | |
djangoassets_logger.setLevel(logging.WARNING) |
This file contains hidden or 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
const int ledGreenPin = 3; | |
const int ledBluePin = 4; | |
int incomingByte; | |
void setup() { | |
// initialize serial communication: | |
Serial.begin(9600); | |
Serial.print("YOYOYO\n"); | |
// initialize the LED pin as an output: | |
pinMode(ledRedPin, OUTPUT); |
This file contains hidden or 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
/** | |
* Order HTML attributes for consistent HTML comparison. | |
* | |
* Adapted from google-code-prettify | |
* http://code.google.com/p/google-code-prettify/source/browse/trunk/src/prettify.js#311 | |
* Apache license, Copyright (C) 2006 Google Inc. | |
*/ | |
function normalizeHtml(node) { | |
var html = ''; | |
switch (node.nodeType) { |
This file contains hidden or 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
[group:kegbot] | |
programs=kegbot_core,kegboard_daemon,kegbot_runserver | |
[program:kegbot_core] | |
command=/opt/kegbot/env/bin/kegbot_core.py | |
directory=/opt/kegbot | |
user=kegbot | |
environment=HOME='/home/kegbot' | |
numprocs=1 | |
autostart=true |
This file contains hidden or 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
#! /usr/bin/env python | |
# Example: $ ./run_tests.py --django-sqlite --multiprocess | |
import os | |
import subprocess | |
import sys | |
scripts_dir = os.path.abspath(os.path.dirname(__file__)) | |
pstat_dir = os.path.join(scripts_dir, '..', 'pstat') |