From b47a731959139da4ab248353347a4940e2b33f92 Mon Sep 17 00:00:00 2001 From: Henry Case Date: Sat, 16 Feb 2019 21:29:20 +0000 Subject: [PATCH] Run tests on ARM64 (#11) --- .travis.yml | 23 +++++++++++++++----- etc/dockers/debian-buster-aarch64/Dockerfile | 6 +++++ 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 etc/dockers/debian-buster-aarch64/Dockerfile diff --git a/.travis.yml b/.travis.yml index b692135..4ca8348 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,24 @@ sudo: required language: go -script: - - NOASM=0 make test - - NOASM=1 make test - - NOASM=0 make cover - - NOASM=1 make cover +matrix: + include: + - name: "Go on x86-64" + os: linux + script: + - make clean + - NOASM=0 make test + - NOASM=1 make test + - NOASM=0 make cover + - NOASM=1 make cover + - name: "Go on ARM64" + services: docker + os: linux + script: + - docker run --rm --privileged multiarch/qemu-user-static:register --reset + - docker run --rm -v `pwd`:`pwd` -w `pwd` "flowher/debian-buster-aarch64-go" /bin/bash -c "NOASM=0 make test" + - docker run --rm -v `pwd`:`pwd` -w `pwd` "flowher/debian-buster-aarch64-go" /bin/bash -c "NOASM=1 make test" + after_script: - bash <(curl -s https://codecov.io/bash) -t 8a75b459-85b1-4e5d-aa12-4dd705914700 diff --git a/etc/dockers/debian-buster-aarch64/Dockerfile b/etc/dockers/debian-buster-aarch64/Dockerfile new file mode 100644 index 0000000..84f88dd --- /dev/null +++ b/etc/dockers/debian-buster-aarch64/Dockerfile @@ -0,0 +1,6 @@ +FROM multiarch/debian-debootstrap:arm64-buster-slim + +RUN apt-get update -qq +USER root +RUN apt-get install -y make golang +RUN rm -rf /var/lib/apt/lists/*