diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8a1ccbd --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: python +python: + - 2.7 + - 3.3 + - 3.4 +install: + - pip install cookiecutter +script: + - make diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4765409 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +# match default value of app_name from cookiecutter.json +COOKIE := myflaskapp +COOKIE_JAR := {{cookiecutter.app_name}} +COOKIE_CRUMBS := $(shell find $(COOKIE_JAR)) + +.PHONY: all +all: test + +.PHONY: test +test: $(COOKIE) + cd $(COOKIE); pip install -r requirements/dev.txt + cd $(COOKIE); python manage.py test + +$(COOKIE): Makefile cookiecutter.json $(COOKIE_CRUMBS) + cookiecutter . --no-input + +.PHONY: clean +clean: + rm -r $(COOKIE) diff --git a/README.rst b/README.rst index 7f33508..b5fd9ac 100644 --- a/README.rst +++ b/README.rst @@ -5,6 +5,10 @@ A Flask template for cookiecutter_. .. _cookiecutter: https://github.com/audreyr/cookiecutter +.. image:: https://travis-ci.org/sloria/cookiecutter-flask.svg + :target: https://travis-ci.org/sloria/cookiecutter-flask + :alt: Build Status + Use it now ---------- ::