Skip to content
Snippets Groups Projects
Commit b85c7b4b authored by Charles Javerliat's avatar Charles Javerliat
Browse files

Merge branch 'feat/ci' into 'master'

continous integration

Closes #1

See merge request cdf2020/libraries/communication/messages/messages-schemas!4
parents ed7cc6f4 ab804e32
No related branches found
No related tags found
1 merge request!4continous integration
Pipeline #493 canceled with stages
image: "registry.gitlab.clubelek.fr/cdf2020/libraries/communication/messages/protobuf-compiler:latest"
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
before_script:
- export COMMIT_MSG="ci/Compile messages $(date +%Y-%m-%d_%H-%M)"
- "which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )"
- eval $(ssh-agent -s)
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan -p 2222 -t rsa gitlab.clubelek.fr >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- git config --global user.email "noreply@clubelek.fr"
- git config --global user.name "Compiler bot"
build:
stage: build
script:
- make
artifacts:
paths:
- python/
- cpp/
expire_in: 30min
only:
refs:
- master
changes:
- messages/*
deploy_python:
stage: deploy
dependencies:
- build
script:
- echo "$SSH_PRIVATE_KEY_PYTHON" | tr -d '\r' | ssh-add -
- git clone $PYTHON_GIT_URL
- rm -f messages-schemas-python/*.py messages-schemas-cpp/*.cc messages-schemas-cpp/*.h
- mv python/* messages-schemas-python/
- cd messages-schemas-python
- git add .
- git diff --quiet && git diff --staged --quiet || git commit -m "$COMMIT_MSG"
- git push -u $PYTHON_GIT_URL master
only:
refs:
- master
changes:
- python/*
deploy_cpp:
stage: deploy
dependencies:
- build
script:
- echo "$SSH_PRIVATE_KEY_CPP" | tr -d '\r' | ssh-add -
- git clone $CPP_GIT_URL
- mv cpp/* messages-schemas-cpp/
- cd messages-schemas-cpp
- git add .
- git diff --quiet && git diff --staged --quiet || git commit -m "$COMMIT_MSG"
- git push -u $CPP_GIT_URL master
only:
refs:
- master
changes:
- cpp/*
......@@ -10,8 +10,8 @@ message Point2D {
message OdomMessage {
int32 sensor_id = 1;
Point2D position = 2;
Point2D linearSpeed = 3;
float angle = 4;
float angle = 3;
float linearSpeed = 4;
float angularSpeed = 5;
}
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