From d1345ca265cfb788479b83183f8c36aa75dd73a7 Mon Sep 17 00:00:00 2001 From: reesporte Date: Sun, 14 Nov 2021 15:00:28 -0600 Subject: [PATCH] build all with golang:1.16.10 --- .gitlab/.gitlab-ci.yml | 50 +++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index 29cb2b05e..5d07a1dc9 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -77,6 +77,18 @@ run go tests: paths: - coverage.out +run go tests future: + stage: test + image: golang:1.17.3 + extends: .go-cache + script: + - echo "Running featurebase unit tests..." + - ./cover-everything.sh + artifacts: + paths: + - coverage.out + + run go tests with output: stage: test image: golang:1.16.10 @@ -102,40 +114,32 @@ upload to sonarcloud: build for linux amd64: stage: build image: golang:1.16.10 - extends: .go-cache - variables: - GOOS: "linux" - GOARCH: "amd64" script: - - go get github.com/rakyll/statik - - go install github.com/rakyll/statik@latest + - rm -r lattice - tar -xvf lattice.tar.gz + - go get -v -u github.com/rakyll/statik - /go/bin/statik -src=lattice - - make build FLAGS="-o featurebase_linux_amd64" + - GOOS="linux" GOARCH="amd64" make build FLAGS="-o featurebase_linux_amd64" artifacts: paths: - featurebase_linux_amd64 build for linux arm64: stage: build - image: registry.gitlab.com/molecula/featurebase/builder:0.0.3 - extends: .go-cache - variables: - GOOS: "linux" - GOARCH: "arm64" + image: golang:1.16.10 script: - - go get github.com/rakyll/statik - - go install github.com/rakyll/statik@latest + - rm -r lattice - tar -xvf lattice.tar.gz + - go get -v -u github.com/rakyll/statik - /go/bin/statik -src=lattice - - make build FLAGS="-o featurebase_linux_arm64" + - GOOS="linux" GOARCH="arm64" make build FLAGS="-o featurebase_linux_arm64" artifacts: paths: - featurebase_linux_arm64 build for darwin amd64: stage: build - image: registry.gitlab.com/molecula/featurebase/builder:0.0.3 + image: golang:1.16.10 script: - rm -r lattice - tar -xvf lattice.tar.gz @@ -148,24 +152,20 @@ build for darwin amd64: build for darwin arm64: stage: build - image: registry.gitlab.com/molecula/featurebase/builder:0.0.3 - extends: .go-cache - variables: - GOOS: "darwin" - GOARCH: "arm64" + image: golang:1.16.10 script: - - go get github.com/rakyll/statik - - go install github.com/rakyll/statik@latest + - rm -r lattice - tar -xvf lattice.tar.gz + - go get -v -u github.com/rakyll/statik - /go/bin/statik -src=lattice - - make build FLAGS="-o featurebase_darwin_arm64" + - GOOS="darwin" GOARCH="arm64" make build FLAGS="-o featurebase_darwin_arm64" artifacts: paths: - featurebase_darwin_arm64 package for linux amd64: stage: build - image: registry.gitlab.com/molecula/featurebase/builder:0.0.3 + image: golang:1.16.10 variables: GOOS: "linux" GOARCH: "amd64"