Selaa lähdekoodia

support go 1.14 (#29)

NOBS now supports Go 1.14 for
* x86-64
* ARM
pull/31/head
Kris K 4 vuotta sitten
committed by GitHub
vanhempi
commit
7d891c7eb8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 muutettua tiedostoa jossa 30 lisäystä ja 8 poistoa
  1. +16
    -5
      .travis.yml
  2. +3
    -3
      etc/dockers/debian-buster-aarch64/Dockerfile_1_13
  3. +11
    -0
      etc/dockers/debian-buster-aarch64/Dockerfile_1_14

+ 16
- 5
.travis.yml Näytä tiedosto

@@ -2,6 +2,7 @@ sudo: required
language: go
go:
- 1.13.x
- 1.14.x
- master

matrix:
@@ -12,15 +13,25 @@ matrix:
- make clean
- NOASM=0 make test
- NOASM=1 make test
- NOASM=0 make cover
- NOASM=1 make cover
- name: "Go on ARM64"
- name: "Go 1.13 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-1.13" /bin/bash -c "NOASM=0 make test"
- docker run --rm -v `pwd`:`pwd` -w `pwd` "flowher/debian-buster-aarch64-go-1.13" /bin/bash -c "NOASM=1 make test"
- name: "Go 1.14 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"
- docker run --rm -v `pwd`:`pwd` -w `pwd` "flowher/debian-buster-aarch64-go-1.14" /bin/bash -c "NOASM=0 make test"
- docker run --rm -v `pwd`:`pwd` -w `pwd` "flowher/debian-buster-aarch64-go-1.14" /bin/bash -c "NOASM=1 make test"
- name: "Coverage"
os: linux
script:
- NOASM=0 make cover
- NOASM=1 make cover


after_script:


etc/dockers/debian-buster-aarch64/Dockerfile → etc/dockers/debian-buster-aarch64/Dockerfile_1_13 Näytä tiedosto

@@ -4,8 +4,8 @@ RUN apt-get upgrade -y
RUN apt-get update -qq
USER root
RUN apt-get install -y make wget ca-certificates
RUN wget https://dl.google.com/go/go1.12.5.linux-arm64.tar.gz
RUN tar -xzf go1.12.5.linux-arm64.tar.gz
RUN wget https://dl.google.com/go/go1.13.linux-arm64.tar.gz
RUN tar -xzf go1.13.linux-arm64.tar.gz
RUN mv go /usr/local/
RUN ln -s /usr/local/go/bin/go /usr/bin/
RUN rm -rf /var/lib/apt/lists/* go1.12.5.linux-arm64.tar.gz
RUN rm -rf /var/lib/apt/lists/* go1.13.linux-arm64.tar.gz

+ 11
- 0
etc/dockers/debian-buster-aarch64/Dockerfile_1_14 Näytä tiedosto

@@ -0,0 +1,11 @@
FROM multiarch/debian-debootstrap:arm64-buster

RUN apt-get upgrade -y
RUN apt-get update -qq
USER root
RUN apt-get install -y make wget ca-certificates
RUN wget https://dl.google.com/go/go1.14.linux-arm64.tar.gz
RUN tar -xzf go1.14.linux-arm64.tar.gz
RUN mv go /usr/local/
RUN ln -s /usr/local/go/bin/go /usr/bin/
RUN rm -rf /var/lib/apt/lists/* go1.14.linux-arm64.tar.gz

Ladataan…
Peruuta
Tallenna