Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalClient
Commits
8591d45c
Commit
8591d45c
authored
Mar 18, 2019
by
Lukas Burgey
Browse files
Minor tweaks to the CI pipeline
parent
5884bf06
Pipeline
#43814
passed with stages
in 1 minute and 37 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
8591d45c
...
@@ -25,12 +25,14 @@ build:
...
@@ -25,12 +25,14 @@ build:
paths
:
paths
:
-
feudalClient
-
feudalClient
deploy
_
dev
:
deploy
-
dev
:
stage
:
deploy
stage
:
deploy
environment
:
name
:
dev
only
:
only
:
-
dev
-
dev
environment
:
name
:
dev
dependencies
:
-
build
script
:
script
:
-
eval $(ssh-agent -s)
-
eval $(ssh-agent -s)
-
echo "$SSH_PRIVATE_KEY" | ssh-add -
-
echo "$SSH_PRIVATE_KEY" | ssh-add -
...
@@ -39,12 +41,14 @@ deploy_dev:
...
@@ -39,12 +41,14 @@ deploy_dev:
-
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
-
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
-
rsync -v feudalClient $DEV_USER@$DEV_HOST:bin/feudalClientDev
-
rsync -v feudalClient $DEV_USER@$DEV_HOST:bin/feudalClientDev
deploy
_
master
:
deploy
-
master
:
stage
:
deploy
stage
:
deploy
environment
:
name
:
master
only
:
only
:
-
master
-
master
environment
:
name
:
master
dependencies
:
-
build
script
:
script
:
-
eval $(ssh-agent -s)
-
eval $(ssh-agent -s)
-
echo "$SSH_PRIVATE_KEY" | ssh-add -
-
echo "$SSH_PRIVATE_KEY" | ssh-add -
...
...
Makefile
View file @
8591d45c
...
@@ -3,20 +3,20 @@ PKG := "git.scc.kit.edu/feudal/$(PROJECT_NAME)"
...
@@ -3,20 +3,20 @@ PKG := "git.scc.kit.edu/feudal/$(PROJECT_NAME)"
PKG_LIST
:=
$(
shell
go list
${PKG}
/... |
grep
-v
/vendor/
)
PKG_LIST
:=
$(
shell
go list
${PKG}
/... |
grep
-v
/vendor/
)
GO_FILES
:=
$(
shell
find
.
-name
'*.go'
|
grep
-v
/vendor/ |
grep
-v
_test.go
)
GO_FILES
:=
$(
shell
find
.
-name
'*.go'
|
grep
-v
/vendor/ |
grep
-v
_test.go
)
.PHONY
:
all dep build clean test
coverage coverhtml
lint
.PHONY
:
all dep build clean test lint
all
:
build
all
:
build
lint
:
##
Lint the files
dep
:
##
Get the dependencies
@
go get
-v
-d
./...
@
go get
-u
golang.org/x/lint/golint
lint
:
dep
##
Lint the files
@
golint
-set_exit_status
${PKG_LIST}
@
golint
-set_exit_status
${PKG_LIST}
test
:
##
Run unittests
test
:
##
Run unittests
@
go
test
-short
${PKG_LIST}
@
go
test
-short
${PKG_LIST}
dep
:
##
Get the dependencies
@
go get
-v
-d
./...
@
go get
-u
golang.org/x/lint/golint
build
:
dep
##
Build the binary file
build
:
dep
##
Build the binary file
@
go build
-i
-v
$(PKG)
@
go build
-i
-v
$(PKG)
...
...
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