-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
75 lines (46 loc) · 1.96 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.PHONY: reqs
reqs:
python -m pip install --upgrade pip
pipenv install --dev
.PHONY: package
package:
sls package
.PHONY: test
test:
pytest -v --cov --cov-report=term --cov-report=html
.PHONY: deploy_development
deploy_development:
sls deploy --stage development
.PHONY: deploy_dev
deploy_dev: deploy_development
.PHONY: remove_development
remove_development:
sls remove --stage development
.PHONY: remove_dev
remove_dev: remove_development
.PHONY: deploy_staging
deploy_staging:
sls deploy --stage staging
.PHONY: remove_staging
remove_staging:
sls remove --stage staging
.PHONY: deploy_production
deploy_production:
sls deploy --stage production
.PHONY: remove_production
remove_production:
sls remove --stage production
.PHONY: man_test_all
man_test_all:
JSON=$$(./scripts/json_to_gql.py tests/handlers/test_json/create_syn_project.json name="Manual Test Project `date +%s`" | sls invoke -f graphql --stage development); \
echo "$$JSON"; \
ID=$$(echo $$JSON | python -c "import json,sys;obj=json.loads(' '.join(sys.stdin.read().split(')', maxsplit=1)[1:]));print(json.loads(obj['body'])['data']['createSynProject']['synProject']['id']);"); \
./scripts/json_to_gql.py tests/handlers/test_json/update_syn_project.json id=$$ID name="Manual Test Project UPDATED `date +%s`" | sls invoke -f graphql --stage development; \
./scripts/json_to_gql.py tests/handlers/test_json/get_syn_project.json id=$$ID | sls invoke -f graphql --stage development; \
./scripts/json_to_gql.py tests/handlers/test_json/create_slide_deck.json | sls invoke -f graphql --stage development;
.PHONY: man_test_create_syn_project
man_test_create_syn_project:
./scripts/json_to_gql.py tests/handlers/test_json/create_syn_project.json name="Manual Test Project `date +%s`" | sls invoke -f graphql --stage development
.PHONY: man_test_create_slide_deck
man_test_create_slide_deck:
./scripts/json_to_gql.py tests/handlers/test_json/create_slide_deck.json | sls invoke -f graphql --stage development