Commit 0b3813dd authored by madengji's avatar madengji

auto ci

parent 6e693abc
chain33
chain33-cli
tool
datadir*
*.log
......
......@@ -61,13 +61,7 @@ go_test:
# - develop
# - bty_develop
code_coverage:
stage: test
script:
- make coverage
only:
- master
- bty_develop
#code_coverage_report:
# stage: test
......@@ -112,6 +106,16 @@ deploy_paracross:
only:
- master
code_coverage:
stage: fork_test
script:
- if [ -n "${onceEveryday}" ]; then
- make coverage
- fi
only:
- master
- bty_develop
fork_test:
stage: fork_test
tags:
......
......@@ -213,16 +213,14 @@ auto_ci_after: clean fmt protobuf
.PHONY: auto_ci
auto_fmt := find . -name '*.go' -not -path './vendor/*' | xargs goimports -l -w
auto_ci: clean fmt_proto fmt_shell protobuf
git branch
git status
-find . -name '*.go' -not -path './vendor/*' | xargs gofmt -l -w -s
-${auto_fmt}
-find . -name '*.go' -not -path './vendor/*' | xargs gofmt -l -w -s
${auto_fmt}
git status
echo $(branch)
files=$$(git status -suno); if [ -n "$$files" ]; then \
git add *.go *.sh *.proto; \
@-find . -name '*.go' -not -path './vendor/*' | xargs gofmt -l -w -s
@-${auto_fmt}
@-find . -name '*.go' -not -path './vendor/*' | xargs gofmt -l -w -s
@${auto_fmt}
@git add -u
@git status
@files=$$(git status -suno); if [ -n "$$files" ]; then \
git add -u; \
git status; \
git commit -a -m "auto ci"; \
git push origin HEAD:$(branch); \
......
......@@ -63,7 +63,7 @@ func watching() {
var m runtime.MemStats
runtime.ReadMemStats(&m)
log.Info("watching:", "NumGoroutine:", runtime.NumGoroutine())
log.Info("watching:", "Mem:", m.Sys/(1024*1024))
log.Info("watching:", "Mem:", m.Sys/(1024*1024))
}
func pwd() string {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment