Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
messages-schemas
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
CdF
CdF 2020-2021
modules
libraries
communication
messages
messages-schemas
Commits
157f3ecf
Unverified
Commit
157f3ecf
authored
5 years ago
by
Charles JAVERLIAT
Browse files
Options
Downloads
Patches
Plain Diff
ci/Add eams deploy
parent
68790413
No related branches found
Branches containing commit
No related tags found
1 merge request
!6
Feat/embeddedproto
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+28
-5
28 additions, 5 deletions
.gitlab-ci.yml
makefile
+2
-2
2 additions, 2 deletions
makefile
with
30 additions
and
7 deletions
.gitlab-ci.yml
+
28
−
5
View file @
157f3ecf
...
...
@@ -4,6 +4,7 @@ variables:
PYTHON_GIT_URL
:
ssh://git@gitlab.clubelek.fr:2222/cdf2020/libraries/communication/messages/messages-schemas-python.git
CPP_GIT_URL
:
ssh://git@gitlab.clubelek.fr:2222/cdf2020/libraries/communication/messages/messages-schemas-cpp.git
NANOPB_GIT_URL
:
ssh://git@gitlab.clubelek.fr:2222/cdf2020/libraries/communication/messages/messages-schemas-nanopb.git
EAMS_GIT_URL
:
ssh://git@gitlab.clubelek.fr:2222/cdf2020/libraries/communication/messages/messages-schemas-eams.git
before_script
:
-
export COMMIT_MSG="ci/Compilation of messages-schemas/$CI_COMMIT_SHA"
...
...
@@ -29,11 +30,11 @@ build:
-
eams/
-
usr/include/google/protobuf/
expire_in
:
30min
#
only:
#
changes:
#
- messages/*
#
refs:
#
- master
only
:
changes
:
-
messages/*
refs
:
-
master
deploy_python
:
stage
:
deploy
...
...
@@ -97,3 +98,25 @@ deploy_nanopb:
-
messages/*
refs
:
-
master
deploy_eams
:
stage
:
deploy
dependencies
:
-
build
script
:
-
echo "$SSH_PRIVATE_KEY_EAMS" | tr -d '\r' | ssh-add -
-
git clone $EAMS_GIT_URL
-
rm -rf messages-schemas-eams/*
-
mv eams/* messages-schemas-eams/
-
mkdir --parents messages-schemas-eams/google/protobuf/
-
cp -r /usr/include/google/protobuf messages-schemas-eams/google/
-
rm -rf messages-schemas-eams/google/protobuf/*.proto
-
cd messages-schemas-eams
-
git add .
-
git commit -m "$COMMIT_MSG" || echo "Nothing to commit."
-
git push -u $EAMS_GIT_URL master
only
:
changes
:
-
messages/*
refs
:
-
master
This diff is collapsed.
Click to expand it.
makefile
+
2
−
2
View file @
157f3ecf
TARGETS
=
cpp python nanopb e
mbeddedproto
TARGETS
=
cpp python nanopb e
ams
all
:
${TARGETS}
...
...
@@ -18,7 +18,7 @@ nanopb:
mkdir
-p
nanopb
protoc
--nanopb_out
=
nanopb
--proto_path
=
messages
${
messages
}
e
mbeddedproto
:
e
ams
:
mkdir
-p
eams
cd
embeddedproto
protoc
--plugin
=
protoc-gen-eams
--eams_out
=
../eams
--proto_path
=
../messages ../
${
messages
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment