-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
45 lines (45 loc) · 1.85 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
.SILENT: main clean development-environment legal list-packages build fast-test test cleanup-functional-tests-environment functional-tests build-integration-tests tag release release-installer promote release-notes-page check-go check-cli-release-config-path
.PHONY: clean development-environment legal list-packages build fast-test test cleanup-functional-tests-environment functional-tests build-integration-tests tag release release-installer promote release-notes-page
.DEFAULT_GOAL := main
main: # don't change this line; first line is the default target in make <= 3.79 despite .DEFAULT_GOAL
echo "Liferay Cloud Platform CLI build tool commands:"
echo "development-environment, list-packages, build, fast-test, test, tag, release, promote"
clean:
rm -f cli*
development-environment:
./scripts/development-environment.sh
legal:
./scripts/legal.sh
list-packages:
go list ./...
build:
go build -o lcp cmd/lcp/*.go
fast-test:
./scripts/test.sh --skip-integration-tests
test:
./scripts/test.sh
cleanup-functional-tests-environment:
./scripts/cleanup-functional-tests-environment.sh
functional-tests:
./scripts/functional-tests.sh
build-integration-tests:
./scripts/build-integration-tests.sh
tag:
./scripts/tag.sh
release: check-cli-release-config-path
./scripts/release.sh --config $$WEDEPLOY_CLI_RELEASE_CONFIG_PATH
release-installer:
./scripts/release-installer.sh --config $$WEDEPLOY_CLI_RELEASE_CONFIG_PATH
promote: check-cli-release-config-path
./scripts/promote.sh --config $$WEDEPLOY_CLI_RELEASE_CONFIG_PATH
release-notes-page:
go run update/releasenotes/page/page.go
check-go:
if ! which go &> /dev/null; \
then >&2 echo "Missing dependency: Go is required https://golang.org/"; \
fi;
check-cli-release-config-path:
if test -z "$$WEDEPLOY_CLI_RELEASE_CONFIG_PATH"; \
then >&2 echo "WEDEPLOY_CLI_RELEASE_CONFIG_PATH environment variable is not set"; \
exit 1; \
fi;