ci: try to run integration test in drone
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
ea314f1fae
commit
4a21568bcd
16
.drone.yml
16
.drone.yml
@ -17,11 +17,23 @@ steps:
|
||||
- tags
|
||||
|
||||
- name: test
|
||||
image: golang:latest
|
||||
image: golang:1.16
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
environment:
|
||||
RASPBIAN_IMAGE: /tmp/2021-05-07-raspios-buster-armhf-lite.img
|
||||
commands:
|
||||
- make test
|
||||
- apt update
|
||||
- apt install -y multipath-tools unzip
|
||||
- (cd /tmp; wget https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-05-28/2021-05-07-raspios-buster-armhf-lite.zip)
|
||||
- (cd /tmp; unzip 2021-05-07-raspios-buster-armhf-lite.zip)
|
||||
- make build-image
|
||||
- make test-all
|
||||
depends_on:
|
||||
- tags
|
||||
- lint
|
||||
|
||||
- name: build
|
||||
image: goreleaser/goreleaser:v0.162.0
|
||||
|
3
Makefile
3
Makefile
@ -23,6 +23,9 @@ test:
|
||||
test-integration: release
|
||||
go test -v -tags=integration -timeout=120m
|
||||
|
||||
.PHONY: test-all
|
||||
test-all: test test-integration
|
||||
|
||||
.PHONY: readme
|
||||
readme:
|
||||
goreadme -title revive > README.md
|
||||
|
@ -19,7 +19,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
sdcard = "/home/marv/tmp/2021-03-04-raspios-buster-armhf-lite.img"
|
||||
sdcard = "/tmp/2021-05-04-raspios-buster-armhf-lite.img"
|
||||
sshUser = "pi"
|
||||
sshPass = "raspberry"
|
||||
sshHost = "localhost"
|
||||
|
Loading…
Reference in New Issue
Block a user