4
1
Fork 0
backend-core/.drone.yml

44 lines
768 B
YAML

kind: pipeline
name: tests-integration
steps:
- name: setup
image: postgres
commands:
- sleep 5
- cat postgres/*.sql | psql --host pg --user root --db core
- name: go
image: golang:1.12
commands:
- go test -tags=integration
environment:
POSTGRES: postgresql://root@pg:5432/core?sslmode=disable
services:
- name: pg
image: postgres
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD:
POSTGRES_DB: core
trigger:
branch:
- master
- develop
event:
- push
- pull_request
---
kind: pipeline
name: tests-unit
steps:
- name: go
image: golang:1.12
commands:
- go test -tags=unit
trigger:
branch:
- master
- develop
event:
- push
- pull_request