Skip to content
Snippets Groups Projects
Unverified Commit 10729c52 authored by Charles JAVERLIAT's avatar Charles JAVERLIAT
Browse files

ci/Add google includes

parent 8a6bf09c
No related branches found
No related tags found
No related merge requests found
Pipeline #516 passed with stages
in 1 minute and 26 seconds
......@@ -20,14 +20,13 @@ build:
stage: build
script:
- make
- ls python/
- ls cpp/
- ls nanopb/
- ls python/ cpp/ nanopb/
artifacts:
paths:
- python/
- cpp/
- nanopb/
- usr/include/google/protobuf/
expire_in: 30min
only:
changes:
......@@ -42,7 +41,7 @@ deploy_python:
script:
- echo "$SSH_PRIVATE_KEY_PYTHON" | tr -d '\r' | ssh-add -
- git clone $PYTHON_GIT_URL
- rm -f messages-schemas-python/*.py
- rm -rf messages-schemas-python/*
- mv python/* messages-schemas-python/
- cd messages-schemas-python
- git add .
......@@ -61,8 +60,11 @@ deploy_cpp:
script:
- echo "$SSH_PRIVATE_KEY_CPP" | tr -d '\r' | ssh-add -
- git clone $CPP_GIT_URL
- rm -f messages-schemas-cpp/*.cc messages-schemas-cpp/*.h
- rm -rf messages-schemas-cpp/*
- mv cpp/* messages-schemas-cpp/
- mkdir --parents messages-schemas-cpp/google/protobuf/
- cp -r /usr/include/google/protobuf messages-schemas-cpp/google/
- rm -rf messages-schemas-cpp/google/protobuf/*.proto
- cd messages-schemas-cpp
- git add .
- git commit -m "$COMMIT_MSG" || echo "Nothing to commit."
......@@ -80,8 +82,11 @@ deploy_nanopb:
script:
- echo "$SSH_PRIVATE_KEY_NANOPB" | tr -d '\r' | ssh-add -
- git clone $NANOPB_GIT_URL
- rm -f messages-schemas-nanopb/*.cc messages-schemas-cpp/*.h
- rm -rf messages-schemas-nanopb/*
- mv nanopb/* messages-schemas-nanopb/
- mkdir --parents messages-schemas-nanopb/google/protobuf/
- cp -r /usr/include/google/protobuf messages-schemas-nanopb/google/
- rm -rf messages-schemas-nanopb/google/protobuf/*.proto
- cd messages-schemas-nanopb
- git add .
- git commit -m "$COMMIT_MSG" || echo "Nothing to commit."
......
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