Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
project_cpp_template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labrobotica
project_cpp_template
Commits
d073e2d5
Commit
d073e2d5
authored
5 years ago
by
Fernando Herrero
Browse files
Options
Downloads
Patches
Plain Diff
Add .gitignore and .gitlab-ci_template.yml, modifying new_project.sh script accordingly
parent
dea65fbb
Branches
development
master
No related tags found
1 merge request
!1
Install path
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
.gitlab-ci_template.yml
+40
-0
40 additions, 0 deletions
.gitlab-ci_template.yml
new_project.sh
+3
-0
3 additions, 0 deletions
new_project.sh
with
46 additions
and
0 deletions
.gitignore
0 → 100644
+
3
−
0
View file @
d073e2d5
bin
build
lib
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab-ci_template.yml
0 → 100644
+
40
−
0
View file @
d073e2d5
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
This diff is collapsed.
Click to expand it.
new_project.sh
+
3
−
0
View file @
d073e2d5
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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