Browse Source

Run tests on ARM64 (#11)

pull/12/head
Henry Case 5 years ago
committed by GitHub
parent
commit
b47a731959
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 5 deletions
  1. +18
    -5
      .travis.yml
  2. +6
    -0
      etc/dockers/debian-buster-aarch64/Dockerfile

+ 18
- 5
.travis.yml View File

@@ -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

+ 6
- 0
etc/dockers/debian-buster-aarch64/Dockerfile View File

@@ -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/*

Loading…
Cancel
Save