From d0c788b7c9143c0cfca26590ee925a87f9ce72d4 Mon Sep 17 00:00:00 2001 From: WeebDataHoarder <57538841+WeebDataHoarder@users.noreply.github.com> Date: Thu, 11 Apr 2024 10:09:11 +0200 Subject: [PATCH] Upgrade git.gammaspectra.live/P2Pool/go-randomx to v1.0.0 and include non-cgo tests --- .drone.yml | 28 ++++++++++++++++++++++++++++ go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index bd5fc04..c1c5cf3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -50,6 +50,20 @@ steps: - apk update - apk add --no-cache git gcc g++ musl-dev pkgconfig - go list -f '{{.Dir}}/...' -m | xargs -n 1 sh -c 'go test -p 1 -failfast -timeout 20m -cover -gcflags=-d=checkptr -v $0 || exit 255' + - name: test-go + image: golang:1.22-alpine3.19 + depends_on: + - init-tests + environment: + MONEROD_RPC_URL: + from_secret: MONEROD_RPC_URL + MONEROD_ZMQ_URL: + from_secret: MONEROD_ZMQ_URL + CGO_ENABLED: "0" + commands: + - apk update + - apk add --no-cache git + - go list -f '{{.Dir}}/...' -m | xargs -n 1 sh -c 'go test -p 1 -failfast -timeout 20m -cover -v $0 || exit 255' --- kind: pipeline type: docker @@ -101,4 +115,18 @@ steps: - apk update - apk add --no-cache git gcc g++ musl-dev pkgconfig - go list -f '{{.Dir}}/...' -m | xargs -n 1 sh -c 'go test -p 1 -failfast -timeout 20m -cover -gcflags=-d=checkptr -v $0 || exit 255' + - name: test-go + image: golang:1.22-alpine3.19 + depends_on: + - init-tests + environment: + MONEROD_RPC_URL: + from_secret: MONEROD_RPC_URL + MONEROD_ZMQ_URL: + from_secret: MONEROD_ZMQ_URL + CGO_ENABLED: "0" + commands: + - apk update + - apk add --no-cache git + - go list -f '{{.Dir}}/...' -m | xargs -n 1 sh -c 'go test -p 1 -failfast -timeout 20m -cover -v $0 || exit 255' ... \ No newline at end of file diff --git a/go.mod b/go.mod index bd7ea5d..6f07637 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.22 require ( git.gammaspectra.live/P2Pool/edwards25519 v0.0.0-20240405085108-e2f706cb5c00 - git.gammaspectra.live/P2Pool/go-randomx v0.0.0-20221027085532-f46adfce03a7 + git.gammaspectra.live/P2Pool/go-randomx v1.0.0 git.gammaspectra.live/P2Pool/monero-base58 v1.0.0 git.gammaspectra.live/P2Pool/randomx-go-bindings v1.0.0 git.gammaspectra.live/P2Pool/sha3 v0.17.0 diff --git a/go.sum b/go.sum index 62690a0..0e832cc 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ git.gammaspectra.live/P2Pool/edwards25519 v0.0.0-20240405085108-e2f706cb5c00 h1:mDQY337iKB+kle5RYWL5CoAz+3DmnkAh/B2XD8B+PFk= git.gammaspectra.live/P2Pool/edwards25519 v0.0.0-20240405085108-e2f706cb5c00/go.mod h1:FZsrMWGucMP3SZamzrd7m562geIs5zp1O/9MGoiAKH0= -git.gammaspectra.live/P2Pool/go-randomx v0.0.0-20221027085532-f46adfce03a7 h1:bzHDuu1IgETKqPBOlIdCE2LaZIJ+ZpROSprNn+fnzd8= -git.gammaspectra.live/P2Pool/go-randomx v0.0.0-20221027085532-f46adfce03a7/go.mod h1:3kT0v4AMwT/OdorfH2gRWPwoOrUX/LV03HEeBsaXG1c= +git.gammaspectra.live/P2Pool/go-randomx v1.0.0 h1:3lE8UWl0509Q5TCtBECLQNnIyxEhPXnmROVMTngEnuM= +git.gammaspectra.live/P2Pool/go-randomx v1.0.0/go.mod h1:K3qOa7AMW0/5azfHraQXxEsc9HygHwlfoLOkHqnSGgE= git.gammaspectra.live/P2Pool/monero-base58 v1.0.0 h1:s8LZxVNc93YEs2NCCNWZ7CKr8RbEb031y6Wkvhn+TS4= git.gammaspectra.live/P2Pool/monero-base58 v1.0.0/go.mod h1:WWEJy/AdWKxKAruvlKI82brw+DtVlePy0ct3ZiBlc68= git.gammaspectra.live/P2Pool/randomx-go-bindings v1.0.0 h1:tajr4QFSPrb8NtHmU14JaXdhr+z+0RbOBLIgUDI5Tow=