Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ffaerber committed Nov 22, 2017
1 parent d4237e1 commit 5c931a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ services:

env:
matrix:
# - ARCH=amd64
- ARCH=arm32v7
- ARCH=arm IMAGE=hypriot/rpi-node:6.10.0
# - ARCH=amd64 IMAGE=amd64/debian:stretch-slim


script:
- ./travis-build.sh
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ARG ARCH=amd64
FROM resin/rpi-raspbian:stretch
FROM ${IMAGE}

COPY qemu-arm-static /usr/bin/qemu-arm-static

Expand Down
8 changes: 4 additions & 4 deletions travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ if [ "$ARCH" != "amd64" ]; then

docker create --name qemu-register hypriot/qemu-register

if [ "$ARCH" == "arm64v8" ]; then
docker cp qemu-register:qemu-aarch64 qemu-aarch64-static
if [ "$ARCH" == "arm" ]; then
docker cp qemu-register:qemu-arm qemu-arm-static
fi

if [ "$ARCH" == "arm32v7" ]; then
docker cp qemu-register:qemu-arm qemu-arm-static
if [ "$ARCH" == "arm64" ]; then
docker cp qemu-register:qemu-aarch64 qemu-aarch64-static
fi

fi
Expand Down

0 comments on commit 5c931a0

Please sign in to comment.