forked from openshift/assisted-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
35 lines (32 loc) · 768 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
kind: pipeline
name: default
steps:
- name: postgres
image: postgres:12.3-alpine
commands:
- until psql -U admin -w installer -c "select 1"; do sleep 5; done
- name: build
image: golang
commands:
- CGO_ENABLED=0 go build -o build/assisted-service cmd/main.go
- ./build/assisted-service &
- sleep 10
- go test -v ./subsystem/... -count=1 -ginkgo.skip=only_k8s -ginkgo.v
environment:
INVENTORY: build:8090
DB_HOST: postgres
DB_PORT: 5432
USE_K8S: false
trigger:
branch:
- master
event:
- pull_request
- push
services:
- name: postgres
image: postgres:12.3-alpine
environment:
POSTGRES_PASSWORD: admin
POSTGRES_USER: admin
POSTGRES_DB: installer