Skip to content

Commit

Permalink
Add support for Travis CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
modocache committed Aug 11, 2012
1 parent 3a38063 commit 9f44c8f
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
@@ -0,0 +1,5 @@
language: python
python:
- "2.7"
install: "pip install -r requirements.txt --use-mirrors"
script: python setup.py install --force && cd test_project && python manage.py test
1 change: 1 addition & 0 deletions Gemfile
@@ -1,3 +1,4 @@
source 'https://rubygems.org' source 'https://rubygems.org'


gem 'watchr', '~> 0.7' gem 'watchr', '~> 0.7'
gem 'travis-lint'
4 changes: 4 additions & 0 deletions Gemfile.lock
@@ -1,10 +1,14 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
hashr (0.0.21)
travis-lint (1.4.0)
hashr (>= 0.0.19)
watchr (0.7) watchr (0.7)


PLATFORMS PLATFORMS
ruby ruby


DEPENDENCIES DEPENDENCIES
travis-lint
watchr (~> 0.7) watchr (~> 0.7)
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# django-generate-scaffold # django-generate-scaffold [![build-status](https://secure.travis-ci.org/modocache/django-generate-scaffold.png)](http://travis-ci.org/#!/modocache/django-generate-scaffold)


Generate a Django model, views, URLconf, and templates using a single command. Generate a Django model, views, URLconf, and templates using a single command.


Expand Down
2 changes: 1 addition & 1 deletion autotest.rb
@@ -1,4 +1,4 @@
watch('.*\.(py|html|txt)') do |match_data_object| watch('.*\.(py|html|txt)') do |match_data_object|
system('python setup.py install --force') system('python setup.py install --force')
system('cd test_project && python manage.py test') system('cd test_project && python manage.py test --with-sneazr')
end end
2 changes: 1 addition & 1 deletion generate_scaffold/utils/directories.py
Expand Up @@ -14,5 +14,5 @@ def get_templates_in_dir(dir_suffix):
for root, _, files in os.walk(template_dir): for root, _, files in os.walk(template_dir):
public_files = [f for f in files if not f.startswith('.')] public_files = [f for f in files if not f.startswith('.')]


for f in public_files: for f in sorted(public_files):
yield os.path.join(root, f) yield os.path.join(root, f)
5 changes: 5 additions & 0 deletions requirements.txt
@@ -0,0 +1,5 @@
Django==1.4.1
distribute==0.6.24
django-nose==1.1
nose==1.1.2
wsgiref==0.1.2
1 change: 0 additions & 1 deletion test_project/test_project/settings.py
@@ -1,7 +1,6 @@
# Django settings for test_project project. # Django settings for test_project project.


TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
NOSE_ARGS = ['--with-sneazr']


DEBUG = True DEBUG = True
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
Expand Down

0 comments on commit 9f44c8f

Please sign in to comment.