Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
labrobotica
algorithms
iriutils
Commits
99a536c7
Commit
99a536c7
authored
Sep 20, 2022
by
Alejandro Lopez Gestoso
Browse files
Updated to the latest version of packaging
parent
d1451441
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
99a536c7
image
:
docker.io/labrobotica/labrobotica:latest
stages
:
-
build
-
test
-
deploy
build-package
:
stage
:
build
script
:
-
apt update || apt -y install ca-certificates && apt update
# Uncomment to install dependencies
# - apt -y install iri-<package_name>-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
*iriutils*.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
iriutils
$(lsb_release
-cs)"
only
:
-
tags
image
:
docker.io/labrobotica/labrobotica:18.04
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
FROM_RDEPENDS_CI
:
"
false"
TAG_VERSION
:
$CI_COMMIT_TAG
PACKAGE_NAME
:
"
iriutils"
include
:
remote
:
'
https://gitlab.iri.upc.edu/labrobotica/packaging_ci/-/raw/master/packaging-ci.yml'
CMakeLists.txt
View file @
99a536c7
...
...
@@ -100,6 +100,7 @@ IF (UNIX)
SET
(
CPACK_PACKAGING_INSTALL_PREFIX /usr
)
SET
(
CPACK_GENERATOR
"DEB"
)
SET
(
CPACK_DEBIAN_PACKAGE_MAINTAINER
"labrobotica - labrobotica@iri.upc.edu"
)
SET
(
CPACK_DEBIAN_PACKAGE_HOMEPAGE
"https://gitlab.iri.upc.edu/labrobotica/algorithms/iriutils"
)
# Uncomment to add the necessary mantainer scripts
SET
(
CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
"
${
CMAKE_SOURCE_DIR
}
/scripts/debian/postinst;
${
CMAKE_SOURCE_DIR
}
/scripts/debian/prerm"
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment