Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bno055_imu_driver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
drivers
bno055_imu_driver
Commits
e005ac22
Commit
e005ac22
authored
5 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Adapted to .deb package generation
parent
97685418
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yaml
+35
-0
35 additions, 0 deletions
.gitlab-ci.yaml
CMakeLists.txt
+35
-0
35 additions, 0 deletions
CMakeLists.txt
with
70 additions
and
0 deletions
.gitlab-ci.yaml
+
35
−
0
View file @
e005ac22
image
:
docker.io/alopeziri/labrobotica
stages
:
-
build
-
test
-
deploy
build-package
:
stage
:
build
script
:
# Uncomment to install dependencies
# - apt update
# - apt -y install iri-<package_name>-dev
-
apt update
-
apt -y install iri-iriutils-dev iri-comm-dev
-
mkdir -pv build
-
cd build
-
cmake -D CMAKE_BUILD_TYPE=RELEASE -DCPACK_PACKAGE_VERSION=$CI_COMMIT_TAG ..
-
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
*bno055-imu-driver*.deb
irilabo@147.83.76.226:packages/"
-
"
ssh
irilabo@147.83.76.226
-i
/root/.ssh/iriLabKeyNopwd
-tt
/home/irilabo/repo_scripts/update_repo.sh
bno055-imu-driver"
only
:
-
tags
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
35
−
0
View file @
e005ac22
...
...
@@ -9,6 +9,7 @@ endif(COMMAND cmake_policy)
# The project name and the type of project
PROJECT
(
bno055_imu_driver
)
SET
(
PACKAGE_NAME bno055-imu-driver
)
SET
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/bin
)
SET
(
LIBRARY_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/lib
)
...
...
@@ -65,4 +66,38 @@ ELSE(UNIX)
)
ENDIF
(
UNIX
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"(x86)|(X86)|(amd64)|(AMD64)"
)
SET
(
X86 TRUE
)
SET
(
CPACK_DEBIAN_PACKAGE_ARCHITECTURE
"amd64"
)
ELSE
()
SET
(
X86 FALSE
)
SET
(
CPACK_DEBIAN_PACKAGE_ARCHITECTURE
"i386"
)
ENDIF
()
IF
(
UNIX
)
SET
(
CPACK_PACKAGE_FILE_NAME
"iri-
${
PACKAGE_NAME
}
-dev-
${
CPACK_PACKAGE_VERSION
}
-
${
CPACK_DEBIAN_PACKAGE_ARCHITECTURE
}
"
)
SET
(
CPACK_PACKAGE_NAME
"iri-
${
PACKAGE_NAME
}
-dev"
)
SET
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Part of IRI-laboratory libraries. More information at https://gitlab.iri.upc.edu/labrobotica/labrobotica_how_to"
)
SET
(
CPACK_PACKAGING_INSTALL_PREFIX /usr
)
SET
(
CPACK_GENERATOR
"DEB"
)
SET
(
CPACK_DEBIAN_PACKAGE_MAINTAINER
"labrobotica - labrobotica@iri.upc.edu"
)
# Uncomment to add the necessary mantainer scripts
# SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_SOURCE_DIR}/package_scripts/preinst;${CMAKE_SOURCE_DIR}/package_scripts/postinst;${CMAKE_SOURCE_DIR}/package_scripts/prerm;${CMAKE_SOURCE_DIR}/package_scripts/postrm")
# Uncomment to add dependencies comma separated
# SET(CPACK_DEBIAN_PACKAGE_DEPENDS "iri-<package_name>-dev (>= 1.0~${DISTRIB})")
SET
(
CPACK_DEBIAN_PACKAGE_DEPENDS
"iri-iriutils-dev (>= 1.0~
${
DISTRIB
}
), iri-comm-dev (>= 1.0~
${
DISTRIB
}
)"
)
INCLUDE
(
CPack
)
ELSE
(
UNIX
)
ADD_CUSTOM_COMMAND
(
COMMENT
"packaging only implemented in unix"
TARGET uninstall
)
ENDIF
(
UNIX
)
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