build all with golang:1.16.10

This commit is contained in:
reesporte 2021-11-14 15:00:28 -06:00
parent 541df0fe37
commit d1345ca265

View file

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