File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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@"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM @BASE_IMAGE@
33SHELL @SHELL@
44
55RUN 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
88COPY scripts /scripts
99
Original file line number Diff line number Diff line change 1717set -euo pipefail
1818
1919cd /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)
Original file line number Diff line number Diff line change @@ -21,3 +21,6 @@ pip install --upgrade setuptools pip wheel
2121cd /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
Original file line number Diff line number Diff line change @@ -18,4 +18,8 @@ set(CPACK_GENERATOR "TGZ;ZIP")
1818set (CPACK_PACKAGE_CONTACT "coord.e <me@coord-e.com>" )
1919set (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+
2125include (CPack )
You can’t perform that action at this time.
0 commit comments