Skip to content

Commit af92695

Browse files
authored
Merge pull request #21 from MonoMotion/bugfix/fix-deployment-errors
Bugfix/fix deployment errors
2 parents ab9f00d + ae12a6f commit af92695

5 files changed

Lines changed: 27 additions & 3 deletions

File tree

ci/bintray.json.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"package": {
33
"name": "servoarray",
44
"repo": "apt",
5-
"subject": "monomotion"
5+
"subject": "monomotion",
6+
"licenses": ["GPL-3.0-or-later"],
7+
"website_url": "https://github.com/MonoMotion/servoarray",
8+
"issue_tracker_url": "https://github.com/MonoMotion/servoarray/issues",
9+
"vcs_url": "https://github.com/MonoMotion/servoarray.git"
610
},
711
"version": {
812
"name": "@VERSION@"

ci/image/Dockerfile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM @BASE_IMAGE@
33
SHELL @SHELL@
44

55
RUN apt-get update -y \
6-
&& apt-get install -y --no-install-recommends libboost-dev libboost-filesystem-dev cmake build-essential
6+
&& apt-get install -y --no-install-recommends libboost-dev libboost-filesystem-dev cmake git build-essential
77

88
COPY scripts /scripts
99

ci/image/scripts/deb_package.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,17 @@
1717
set -euo pipefail
1818

1919
cd /build
20-
cpack -D CPACK_OUTPUT_FILE_PREFIX=/dist -D CPACK_GENERATOR=DEB
20+
21+
function package_filename() {
22+
local sa_version=$(/source/version.sh)
23+
local arch=$(dpkg --print-architecture)
24+
25+
. /etc/os-release
26+
if [ -n "${VERSION_ID:-}" ]; then
27+
echo "servoarray_${sa_version}-deb${VERSION_ID}_${arch}"
28+
else
29+
echo "servoarray_${sa_version}_${arch}"
30+
fi
31+
}
32+
33+
cpack -D CPACK_OUTPUT_FILE_PREFIX=/dist -D CPACK_GENERATOR=DEB -D CPACK_PACKAGE_FILE_NAME=$(package_filename)

ci/image/scripts/python_package.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ pip install --upgrade setuptools pip wheel
2121
cd /source
2222
${BUILDER_SDIST:-false} && python setup.py sdist -d /dist
2323
${BUILDER_WHEEL:-false} && python setup.py bdist_wheel -d /dist
24+
25+
# tell travis that this is success
26+
true

src/cmake/cpack.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ set(CPACK_GENERATOR "TGZ;ZIP")
1818
set(CPACK_PACKAGE_CONTACT "coord.e <me@coord-e.com>")
1919
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libboost-filesystem1.62.0")
2020

21+
set(CPACK_PACKAGE_VERSION_MAJOR ${servoarray_VERSION_MAJOR})
22+
set(CPACK_PACKAGE_VERSION_MINOR ${servoarray_VERSION_MINOR})
23+
set(CPACK_PACKAGE_VERSION_PATCH ${servoarray_VERSION_PATCH})
24+
2125
include(CPack)

0 commit comments

Comments
 (0)