-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
37 lines (28 loc) · 1.06 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
# MAIN
publish: build copy
# build
build: build-manifest build-shortcodes build-readme
## build a json file with folders
build-manifest:
ROOT=$(PWD) MANIFEST_PATH=$(PWD)/.manifest.json python3 .build/build-manifest.py
## create shortcodes
build-shortcodes:
DEBUG=script* npm run shortcodes
@echo "Now run 'make copy'"
## template the readme
build-readme:
DEBUG=script* npm run readme
# copy files to s3
copy: copy-shortcodes copy-manifest copy-screenshots
copy-manifest:
aws s3 cp .manifest.json s3://assets.mailslurp.com/examples/manifest.json
copy-shortcodes:
aws s3 cp --recursive shortcodes/ s3://api-spec.mailslurp.com/shortcodes-github
copy-screenshots:
aws s3 cp --recursive php-laravel-phpunit/tests/Browser/screenshots/ s3://api-spec.mailslurp.com/test-screenshots/examples/php-laravel-phpunit
aws s3 cp --recursive javascript-cypress-newsletter-signup/cypress/screenshots/spec.cy.js/ s3://api-spec.mailslurp.com/test-screenshots/examples/cypress-newsletter-signup
# checks
check-actions:
python3 .build/check-actions.py
check-deps:
python3 .build/check-deps.py