Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
fbe7e211
Commit
fbe7e211
authored
Nov 11, 2018
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix_autoci' into 'master'
auto ci See merge request chain33/plugin!12
parents
6e693abc
6dc8e3b4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
18 deletions
+19
-18
.gitignore
.gitignore
+0
-1
.gitlab-ci.yml
.gitlab-ci.yml
+11
-7
Makefile
Makefile
+8
-10
No files found.
.gitignore
View file @
fbe7e211
chain33
chain33-cli
tool
datadir*
*.log
...
...
.gitlab-ci.yml
View file @
fbe7e211
...
...
@@ -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
:
...
...
Makefile
View file @
fbe7e211
...
...
@@ -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)
;
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment