-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
47 lines (35 loc) · 1.14 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
.PHONY: target
target:
$(info ${HELP_MESSAGE})
@exit 0
.PHONY: init
init:
bundle install
.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.1.yml alpine 3.12 2.7
.PHONY: test-unit
test-unit:
ruby test/run_tests.rb unit
.PHONY: test-integ
test-integ: setup-codebuild-agent
CODEBUILD_IMAGE_TAG=codebuild-agent test/integration/codebuild-local/test_all.sh test/integration/codebuild
.PHONY: build
build:
rake build
.PHONY: pr
pr: init test-unit test-smoke
define HELP_MESSAGE
Usage: $ make [TARGETS]
TARGETS
build Builds the package.
clean Cleans the working directory by removing built artifacts.
init Initialize and install the dependencies and dev-dependencies for this project.
test-integ Run Integration tests.
test-unit Run Unit Tests.
test-smoke Run Sanity/Smoke tests.
pr Perform all checks before submitting a Pull Request.
endef