Build cookies on Travis

master
Josh Friend 10 years ago
parent 91fdb61535
commit ccf91009d6
  1. 9
      .travis.yml
  2. 19
      Makefile
  3. 4
      README.rst

@ -0,0 +1,9 @@
language: python
python:
- 2.7
- 3.3
- 3.4
install:
- pip install cookiecutter
script:
- make

@ -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)

@ -5,6 +5,10 @@ A Flask template for cookiecutter_.
.. _cookiecutter: https://github.com/audreyr/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 Use it now
---------- ----------
:: ::

Loading…
Cancel
Save