Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix CI issues and improve make script #562

Merged
merged 8 commits into from
May 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,24 @@ application.pid
*.orig

# integrate test
integrate_test.sh
integrate_test.sh

# production of quickstart testing
cmd/layotto/layotto
cmd/layotto/nohup.out
cmd/layotto_multiple_api/layotto
cmd/layotto_multiple_api/nohup.out
default.etcd/
demo/configuration/common/client
demo/file/client
demo/flowcontrol/client
demo/lock/redis/client
demo/pubsub/redis/client/publisher
demo/pubsub/redis/server/nohup.out
demo/pubsub/redis/server/subscriber
demo/sequencer/common/client
demo/state/common/client
etc/script/mdx
etcd
layotto_wasmer
nohup.out
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ clean:
## all: Run format codes, check codes, build Layotto codes for host platform with one command
# ==============================================================================
.PHONY: all
all: format check.style check.unit check.lint build
all: clean format check style.quickstart clean

# ==============================================================================
# Usage
Expand Down
2 changes: 1 addition & 1 deletion etc/script/test-quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ sh etc/script/download_etcd.sh
# release all resources
release_resource() {
# kill processes
processes="layotto layotto_wasmer etcd go"
processes="layotto layotto_wasmer etcd server client go"
for key in ${processes}; do
if killall $key; then
echo "$key released"
Expand Down
18 changes: 18 additions & 0 deletions make/golang.mk
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,24 @@ go.clean:
@echo "===========> Cleaning all build output"
@rm -rf $(OUTPUT_DIR)
@rm -rf $(ROOT_DIR)/cover.out
@rm -f cmd/layotto/layotto
@rm -f cmd/layotto/nohup.out
@rm -f cmd/layotto_multiple_api/layotto
@rm -f cmd/layotto_multiple_api/nohup.out
@rm -rf default.etcd/
@rm -f demo/configuration/common/client
@rm -f demo/file/client
@rm -f demo/flowcontrol/client
@rm -f demo/lock/redis/client
@rm -f demo/pubsub/redis/client/publisher
@rm -f demo/pubsub/redis/server/nohup.out
@rm -f demo/pubsub/redis/server/subscriber
@rm -f demo/sequencer/common/client
@rm -f demo/state/common/client
@rm -f etc/script/mdx
@rm -f etcd
@rm -f layotto_wasmer
@rm -f nohup.out

.PHONY: go.lint.verify
go.lint.verify:
Expand Down