Skip to content
Snippets Groups Projects
Commit d073e2d5 authored by Fernando Herrero's avatar Fernando Herrero
Browse files

Add .gitignore and .gitlab-ci_template.yml, modifying new_project.sh script accordingly

parent dea65fbb
No related tags found
1 merge request!1Install path
bin
build
lib
\ No newline at end of file
image: docker.io/labrobotica/labrobotica
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- test
- deploy
build-package:
stage: build
script:
#- git submodule sync --recursive
#- git submodule update --init --recursive
- apt update
##Install dependencies
#- apt -y install iri-iriutils-dev iri-comm-dev iri-dynamixel-dev
- mkdir -pv build
- cd build
- cmake -DCMAKE_BUILD_TYPE=RELEASE -DCPACK_PACKAGE_VERSION=$CI_COMMIT_TAG ..
- ls ..
- make firmware -j $(nproc)
- make package -j $(nproc)
artifacts:
paths:
- build/*.deb
expire_in: 2 weeks
only:
- tags
update_repo:
stage: deploy
script:
- cd build
- "scp -i /root/.ssh/iriLabKeyNopwd -r *library-name*.deb irilabo@labrepo.iri.upc.edu:packages/"
- "ssh irilabo@labrepo.iri.upc.edu -i /root/.ssh/iriLabKeyNopwd -tt /home/irilabo/repo_scripts/update_repo.sh library-name"
only:
- tags
\ No newline at end of file
......@@ -271,6 +271,8 @@ else
rm application_src_template.cpp
fi
sed 's/library-name/'$NEW_NAME_WITH_DASHES'/g' <.gitlab-ci_template.yml >./.gitlab-ci.yml
if [ $TEST = 1 ]
then
Library_name=$(echo $NAME | sed 's/\([a-zA-Z]\)\([a-zA-Z0-9]*\)/\u\1\2/g')
......@@ -288,5 +290,6 @@ rm driver_src_template.cpp
rm driver_header_template.h
rm driver_example_src_template.cpp
rm Findlib_template.cmake
rm .gitlab-ci_template.yml
rm new_project.sh
rm -rf .git
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment