Browse files

Add support for Travis CI.

  • Loading branch information...
1 parent 3a38063 commit 9f44c8f7417515014f26bda0d567dd914d71cde4 @modocache committed Aug 11, 2012
Showing with 18 additions and 4 deletions.
  1. +5 −0 .travis.yml
  2. +1 −0 Gemfile
  3. +4 −0 Gemfile.lock
  4. +1 −1 README.md
  5. +1 −1 autotest.rb
  6. +1 −1 generate_scaffold/utils/directories.py
  7. +5 −0 requirements.txt
  8. +0 −1 test_project/test_project/settings.py
View
5 .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
View
1 Gemfile
@@ -1,3 +1,4 @@
source 'https://rubygems.org'
gem 'watchr', '~> 0.7'
+gem 'travis-lint'
View
4 Gemfile.lock
@@ -1,10 +1,14 @@
GEM
remote: https://rubygems.org/
specs:
+ hashr (0.0.21)
+ travis-lint (1.4.0)
+ hashr (>= 0.0.19)
watchr (0.7)
PLATFORMS
ruby
DEPENDENCIES
+ travis-lint
watchr (~> 0.7)
View
2 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.
View
2 autotest.rb
@@ -1,4 +1,4 @@
watch('.*\.(py|html|txt)') do |match_data_object|
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
View
2 generate_scaffold/utils/directories.py
@@ -14,5 +14,5 @@ def get_templates_in_dir(dir_suffix):
for root, _, files in os.walk(template_dir):
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)
View
5 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
View
1 test_project/test_project/settings.py
@@ -1,7 +1,6 @@
# Django settings for test_project project.
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
-NOSE_ARGS = ['--with-sneazr']
DEBUG = True
TEMPLATE_DEBUG = DEBUG

0 comments on commit 9f44c8f

Please sign in to comment.