forked from aws/aws-lambda-nodejs-runtime-interface-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (55 loc) · 1.57 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: target
target:
$(info ${HELP_MESSAGE})
@exit 0
.PHONY: init
init:
npm install
.PHONY: test
test:
npm run test
.PHONY: setup-codebuild-agent
setup-codebuild-agent:
docker build -t codebuild-agent - < test/integration/codebuild-local/Dockerfile.agent
.PHONY: test-smoke
test-smoke: setup-codebuild-agent
CODEBUILD_IMAGE_TAG=codebuild-agent test/integration/codebuild-local/test_one.sh test/integration/codebuild/buildspec.os.alpine.2.yml alpine 3.12 14
.PHONY: test-integ
test-integ: setup-codebuild-agent
CODEBUILD_IMAGE_TAG=codebuild-agent test/integration/codebuild-local/test_all.sh test/integration/codebuild
.PHONY: copy-files
copy-files:
npm run copy-files
.PHONY: install
install:
BUILD=$(BUILD) npm install
.PHONY: format
format:
npm run format
# Command to run everytime you make changes to verify everything works
.PHONY: dev
dev: init test
# Verifications to run before sending a pull request
.PHONY: pr
pr: build dev test-smoke
.PHONY: clean
clean:
npm run clean
.PHONY: build
build: copy-files
make install BUILD=1
npm run build
.PHONY: pack
pack: build
npm pack
define HELP_MESSAGE
Usage: $ make [TARGETS]
TARGETS
format Run format to automatically update your code to match our formatting.
build Builds the package.
clean Cleans the working directory by removing built artifacts.
dev Run all development tests after a change.
init Initialize and install the dependencies and dev-dependencies for this project.
pr Perform all checks before submitting a Pull Request.
test Run the Unit tests.
endef