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
from django.test import TestCase, TransactionTestCase | |
from pstat.document_control.models import Document | |
class AAATestCase(TransactionTestCase): | |
fixtures = [ | |
'test_customers.yaml', | |
'test_tenants.yaml', | |
'test_blocs.yaml', | |
'test_document_settings.json', |
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
sudo cp -r /home/hudson/.ssh /root/; | |
sudo chown -R root:root /root/.ssh; | |
sudo service mysql stop; | |
sudo cp -pRL /var/lib/mysql /dev/shm/mysql; | |
sudo echo "[mysqld] | |
datadir = /dev/shm/mysql | |
" > /tmp/ramdisk.cnf; | |
sudo mv /tmp/ramdisk.cnf /etc/mysql/conf.d/ramdisk.cnf; | |
sudo echo " |
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 | |
# 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; |