View post-commit
#!/bin/sh
SRC_PATTERN="migrations/"
git show --name-only | if grep --quiet "$SRC_PATTERN"
then
cp Procfile_with_release Procfile
git commit . -m "Added release command since a migration file was modified or created."
fi
View test_settings.py
from base import *
SEARCH_INDEX = os.environ.get('SEARCH_INDEX', 'test_haystack')
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': os.environ.get('HAYSTACK_ENGINE', 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine'),
'URL': ELASTICSEARCH_URL,
'INDEX_NAME': SEARCH_INDEX,
'KWARGS': ELASTICSEARCH_KWARGS
},
View pytest.ini
[pytest]
python_paths=/app/seekr
DJANGO_SETTINGS_MODULE=seekr.settings.test_settings
norecursedirs=migrations node_modules bower_components src pages paypal dial lockdown threadedcomments
python_files=test_*.py tests.py
addopts = --reuse-db
[flake8]
exclude = migrations node_modules bower_components src pages paypal dial lockdown threadedcomments
View ion.rangeSlider.skinCSS3.css
.irs {
height: 40px;
margin:20px 0;
}
.irs-with-grid {
height: 60px;
}
.irs-line {
height: 10px; top: 33px;