forked from gmoon/s3proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (42 loc) · 1.38 KB
/
Makefile
File metadata and controls
53 lines (42 loc) · 1.38 KB
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
SHELL := /bin/bash
PACKAGE_NAME := $(shell jq --raw-output '.name' package.json 2>/dev/null)
PACKAGE_VERSION := $(shell jq --raw-output '.version' package.json 2>/dev/null)
GIT_REV := $(shell git rev-parse --short HEAD 2>/dev/null || echo 0)
UUID := $(shell date +%s)
.PHONY: eslint
eslint:
npm run eslint
.PHONY: unit-tests
unit-tests:
npm run nyc-coverage
.PHONY: artillery
artillery-ci:
npm run artillery-ci
.PHONY: sam-app
sam-app:
cd examples/sam-app && sam build
cd examples/sam-app && sam local invoke -e events/event.json
.PHONY: sam-app-s3proxy
sam-app-s3proxy:
cd examples/sam-app/s3proxy && npm install
cd examples/sam-app/s3proxy && npm run build --if-present
cd examples/sam-app/s3proxy && npm test
.PHONY: dockerize-for-test
dockerize-for-test:
npm run dockerize-for-test
.PHONY: artillery-docker
artillery-docker: dockerize-for-test
npm run artillery-docker
###################################################################
##
## These are the top level targets: test, functional-tests, all.
## They are expected to pass using parallel mode (make -j),
## e.g. make -j all
##
###################################################################
.PHONY: test
test : eslint unit-tests artillery-ci sam-app sam-app-s3proxy
.PHONY: functional-tests
functional-tests: dockerize-for-test artillery-docker
.PHONY: all
all: test functional-tests