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
e346042d
Unverified
Commit
e346042d
authored
5 years ago
by
Charles JAVERLIAT
Browse files
Options
Downloads
Patches
Plain Diff
ci/Add nanopb target
parent
961053a0
No related branches found
No related tags found
No related merge requests found
Pipeline
#496
canceled with stage
in 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+15
-0
15 additions, 0 deletions
.gitlab-ci.yml
makefile
+7
-7
7 additions, 7 deletions
makefile
with
22 additions
and
7 deletions
.gitlab-ci.yml
+
15
−
0
View file @
e346042d
...
...
@@ -3,6 +3,7 @@ image: "registry.gitlab.clubelek.fr/cdf2020/libraries/communication/messages/pro
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
before_script
:
-
export COMMIT_MSG="ci/Compile messages $(date +%Y-%m-%d_%H-%M)"
...
...
@@ -23,6 +24,7 @@ build:
paths
:
-
python/
-
cpp/
-
nanopb/
expire_in
:
30min
only
:
refs
:
...
...
@@ -56,3 +58,16 @@ deploy_cpp:
-
git add .
-
git diff --quiet && git diff --staged --quiet || git commit -m "$COMMIT_MSG"
-
git push -u $CPP_GIT_URL master
deploy_nanopb
:
stage
:
deploy
dependencies
:
-
build
script
:
-
echo "$SSH_PRIVATE_KEY_NANOPB" | tr -d '\r' | ssh-add -
-
git clone $NANOPB_GIT_URL
-
mv nanopb/* messages-schemas-nanopb/
-
cd messages-schemas-nanopb
-
git add .
-
git diff --quiet && git diff --staged --quiet || git commit -m "$COMMIT_MSG"
-
git push -u $NANOPB_GIT_URL master
This diff is collapsed.
Click to expand it.
makefile
+
7
−
7
View file @
e346042d
LANGUAGES
=
cpp python
javascript
ENV
=
cpp python
nanopb
all
:
${
LANGUAGES
}
all
:
${
ENV
}
messages
=
$(
wildcard messages/
*
.proto
)
.PHONY
:
${
LANGUAGES
} clean
.PHONY
:
${
ENV
} clean
cpp
:
mkdir
-p
cpp
...
...
@@ -14,9 +14,9 @@ python:
mkdir
-p
python
protoc
--python_betterproto_out
=
python
--proto_path
=
messages
${
messages
}
javascript
:
mkdir
-p
javascript
protoc
--
js_out
=
javascript
--proto_path
=
messages
${
messages
}
nanopb
:
mkdir
-p
nanopb
protoc
--
nanopb_out
=
nanopb
--proto_path
=
messages
${
messages
}
clean
:
rm
-rf
${
LANGUAGES
}
rm
-rf
${
ENV
}
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