-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
51 lines (39 loc) · 1.79 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
# Usage: $ make
APT := $(shell eval command -v apt)
.PHONY: help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
install: ## Run this after a fresh clone
@echo "Installing PHP dependencies…"
composer install
@echo "Installing gherkin feature suite…"
git submodule update --init --recursive
@echo "Initializing feature suite…"
cp --no-clobber behat.yml.dist behat.yml
@echo "Initializing cryptography…"
@bash bin/setup_jwt.bash
ifdef APT
@echo "Installing optional debian packages for extra fun…"
sudo apt install -y fortunes cowsay
endif
@echo "Running the feature suite…"
vendor/bin/behat
inspection: ## Run all the tests
vendor/bin/behat -vv
inspection-automated: ## Run the subset of tests suitable for Continuous Integration
vendor/bin/behat -vv --tags="~wip&&~noci"
cuisine: ## Run the subset of Work In Progress tests
vendor/bin/behat -vv --tags="wip"
client-typescript-node: ## Generate a client library that can consume our API
bash bin/generate-client.bash -t typescript-node
client-php: ## Generate a client library that can consume our API
bash bin/generate-client.bash -t php
client-javascript: ## Generate a client library that can consume our API
bash bin/generate-client.bash -t javascript
# You may need to run `npx babel src -d dist` in the target lib
client-dart: ## Generate a client library that can consume our API
bash bin/generate-client.bash -t dart
# Adding this as well, until we figure out how NOT to hardcode the target directory
client-javascript-domi: ## Generate & Babel a client library that can consume our API
bash bin/generate-client.bash -t javascript -o ~/code/snd/
cd ~/code/snd/mv-api-client-lib-javascript && npx babel src -d dist