ci: try to run integration test in drone
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Marvin Steadfast 2021-06-01 14:25:37 +02:00
parent ea314f1fae
commit 4a21568bcd
3 changed files with 18 additions and 3 deletions

View File

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

View File

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

View File

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