generated from gcallah/flask-api
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
40 lines (32 loc) · 837 Bytes
/
makefile
File metadata and controls
40 lines (32 loc) · 837 Bytes
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
36
37
38
39
40
YAML_LINT = yamllint
API_DIR = API
TEXT_DIR = textgame
REQ_DIR = .
FORCE:
prod: tests github
tests: FORCE
cd $(API_DIR); make tests
cd $(TEXT_DIR); make tests
test_yaml:
$(YAML_LINT) .travis.yml
github: FORCE
- git commit -a
git push origin master
dev_env: FORCE
pip install -r $(REQ_DIR)/requirements-dev.txt
# here's how to set up heroku for your repo:
# Already done for gcallah/GameAPI!
heroku:
# install heroku:
curl https://cli-assets.heroku.com/install.sh | sh
heroku login
heroku apps:create sd-game-api
# set up heroku app as remote for this repo
heroku git:remote -a sd-game-api
heroku config:set PYTHONPATH="/app"
heroku config:set GAME_HOME="/app"
echo "web: gunicorn source.endpoints:app" > Procfile
# enter deploy code in .travis.yml
docs: FORCE
cd $(API_DIR); make docs
cd $(TEXT_DIR); make docs