-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (27 loc) · 980 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.PHONY: all test clean run-dev deploy deploy_build
all: test
run-dev: config.py lib
dev_appserver.py --enable_console true --dev_appserver_log_level debug dispatch.yaml app.yaml worker.yaml
deploy: deploy_build
gcloud app deploy app.yaml worker.yaml index.yaml dispatch.yaml --no-promote
# If you are using cron.yaml uncomment the line below
# gcloud app deploy cron.yaml
deploy_build: config.py clean lib test
@echo "\033[31mHave you bumped the app version? Hit ENTER to continue, CTRL-C to abort.\033[0m"
@read ignored
lib: requirements.txt
mkdir -p lib
rm -rf lib/*
pip install -r requirements.txt -t lib
test: google_appengine
# reset database before each test run
rm -f /tmp/nosegae.sqlite3
tox
clean:
find . -name '*.pyc' -delete
rm -rf lib
rm -f /tmp/nosegae.sqlite3
google_appengine:
mkdir -p tmp
curl -o tmp/google_appengine.zip 'https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.88.zip'
unzip tmp/google_appengine.zip