Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhernandezb committed Jan 29, 2025
1 parent bb6876a commit eaf3055
Showing 1 changed file with 49 additions and 48 deletions.
97 changes: 49 additions & 48 deletions .drone.star.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,55 @@
kind: pipeline
name: test_and_build
services:
- image: docker:dind
name: dind
privileged: true
volumes:
- name: dockersock
path: /var/run/docker.sock
- name: dind
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run

steps:
- commands:
- git fetch --tags
image: alpine/git
name: fetch
- commands:
- sleep 10
- ls -l /var/run/docker.sock
- test -S /var/run/docker.sock && echo 'Docker socket found' || echo 'Docker socket
missing'
image: alpine
name: debug_dind
volumes:
- name: dockersock
path: /var/run/docker.sock
- commands:
- ./scripts/go-test.sh
environment:
GOPROXY: http://goproxy
image: publicawesome/golang:1.23.5-devtooling
name: test
- commands:
- apk add --no-cache ca-certificates build-base git
- wget https://github.com/CosmWasm/wasmvm/releases/download/v2.1.4/libwasmvm_muslc.x86_64.a
-O /lib/libwasmvm_muslc.x86_64.a
- echo 'a4a3d09b36fabb65b119d5ba23442c23694401fcbee4451fe6b7e22e325a4bac /lib/libwasmvm_muslc.x86_64.a'
| sha256sum -c
- LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build
- echo 'Ensuring binary is statically linked ...' && (file $PWD/bin/starsd | grep
'statically linked')
environment:
GOPROXY: http://goproxy
image: golang:1.23.5-alpine3.20
name: build
- commands:
- docker build -t publicawesome/stargaze:latest .
image: docker:24
name: build_docker
volumes:
- name: dockersock
path: /var/run/docker.sock
- commands:
- git fetch --tags
image: alpine/git
name: fetch
- commands:
- sleep 10
- ls -l /var/run/docker.sock
- test -S /var/run/docker.sock && echo 'Docker socket found' || echo 'Docker socket
missing'
image: alpine
name: debug_dind
volumes:
- name: dockersock
path: /var/run
- commands:
- ./scripts/go-test.sh
environment:
GOPROXY: http://goproxy
image: publicawesome/golang:1.23.5-devtooling
name: test
- commands:
- apk add --no-cache ca-certificates build-base git
- wget https://github.com/CosmWasm/wasmvm/releases/download/v2.1.4/libwasmvm_muslc.x86_64.a
-O /lib/libwasmvm_muslc.x86_64.a
- echo 'a4a3d09b36fabb65b119d5ba23442c23694401fcbee4451fe6b7e22e325a4bac /lib/libwasmvm_muslc.x86_64.a'
| sha256sum -c
- LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build
- echo 'Ensuring binary is statically linked ...' && (file $PWD/bin/starsd | grep
'statically linked')
environment:
GOPROXY: http://goproxy
image: golang:1.23.5-alpine3.20
name: build
- commands:
- docker build -t publicawesome/stargaze:latest .
image: docker:24
name: build_docker
volumes:
- name: dockersock
path: /var/run/docker.sock
type: docker
volumes:
- name: dockersock
path: /var/run/docker.sock
- name: dockersock
path: /var/run/docker.sock

0 comments on commit eaf3055

Please sign in to comment.