parent
91fdb61535
commit
ccf91009d6
@ -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)
|
Loading…
Reference in new issue