Skip to content

Commit

Permalink
Travis CI: make Raspbian packages working on ARMv6 devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Sep 29, 2018
1 parent da053d8 commit bd12852
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .travis-ci/mk-pkgs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ set -x
function mkDeb {
ARGS=("$@")

GO_ARCH="${ARGS[0]}"
LSBDISTID="${ARGS[0]}"
DEB_ARCH="${ARGS[1]}"
GO_ENV=('GOOS=linux' "GOARCH=$GO_ARCH" "${ARGS[@]:2}")
GO_ARCH="${ARGS[2]}"
GO_ENV=('GOOS=linux' "GOARCH=$GO_ARCH" "${ARGS[@]:3}")

GO_OUT="$(echo "${GO_ENV[@]}")"
GO_OUT="${GO_OUT//=/_}"
Expand Down Expand Up @@ -45,7 +46,7 @@ function mkDeb {
Consult Masif Upgrader'"'"'s manual on its purpose and the agent'"'"'s role in its architecture:
https://github.com/masif-upgrader/manual' \
--url 'https://github.com/masif-upgrader/agent' \
-p "${PKG_NAME}-${PKG_VERSION}-${DEB_ARCH}.deb" \
-p "${PKG_NAME}-${PKG_VERSION}-${LSBDISTID}-${DEB_ARCH}.deb" \
-d apt -d bash -d systemd --no-auto-depends \
--config-files /etc/masif-upgrader/agent.ini \
--after-install packaging/daemon-reload.sh --after-upgrade packaging/daemon-reload.sh --after-remove packaging/daemon-reload.sh \
Expand All @@ -68,20 +69,20 @@ cp packaging/systemd.service pkgroot/lib/systemd/system/masif-upgrader-agent.ser

go generate

mkDeb amd64 amd64 GO386=387
mkDeb 386 i386 GO386=387
# LSBDISTID DEB_ARCH GO_ARCH GO_ENV

mkDeb mips mips GOMIPS=softfloat
mkDeb mipsle mipsel GOMIPS=softfloat
mkDeb mips64le mips64el
mkDeb Debian amd64 amd64 GO386=387
mkDeb Debian i386 386 GO386=387

mkDeb ppc64le ppc64el
mkDeb s390x s390x
mkDeb Debian mips mips GOMIPS=softfloat
mkDeb Debian mipsel mipsle GOMIPS=softfloat
mkDeb Debian mips64el mips64le

mkDeb arm armel GOARM=5
mkDeb arm armhf GOARM=7
mkDeb arm64 arm64
mkDeb Debian ppc64el ppc64le
mkDeb Debian s390x s390x

mkDeb arm armv6l GOARM=6
mkDeb arm armv7l GOARM=7
mkDeb arm64 aarch64
mkDeb Debian armel arm GOARM=5
mkDeb Debian armhf arm GOARM=7
mkDeb Debian arm64 arm64

mkDeb Raspbian armhf arm GOARM=6

0 comments on commit bd12852

Please sign in to comment.