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

64 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2019-09-01 00:18:29 +08:00
kind: pipeline
2019-10-23 13:49:43 +08:00
name: tests-fmt
steps:
- name: go
image: golang:1.13
commands:
- make test_fmt
trigger:
branch:
- master
- develop
event:
- push
- pull_request
---
kind: pipeline
2019-09-01 00:18:29 +08:00
name: tests-integration
steps:
2019-09-28 23:07:08 +08:00
- name: wait
image: golang:1.13
commands:
- go run scripts/testutils.go wait
environment:
POSTGRES: postgresql://root@pg:5432/core?sslmode=disable
2019-09-01 00:27:35 +08:00
- name: setup
image: postgres
commands:
- cat postgres/*.sql | psql --host pg --user root --db core
2019-09-01 00:18:29 +08:00
- name: go
2019-09-28 23:07:08 +08:00
image: golang:1.13
2019-09-01 00:18:29 +08:00
commands:
2019-09-28 23:07:08 +08:00
- make test_integration
2019-09-01 00:18:29 +08:00
environment:
POSTGRES: postgresql://root@pg:5432/core?sslmode=disable
services:
- name: pg
image: postgres
environment:
2019-09-01 00:27:35 +08:00
POSTGRES_USER: root
POSTGRES_PASSWORD:
POSTGRES_DB: core
2019-09-01 00:18:29 +08:00
trigger:
branch:
- master
- develop
event:
- push
- pull_request
---
kind: pipeline
name: tests-unit
steps:
- name: go
2019-10-23 13:49:43 +08:00
image: golang:1.13
2019-09-01 00:18:29 +08:00
commands:
2019-09-28 23:07:08 +08:00
- make test_unit
2019-09-01 00:18:29 +08:00
trigger:
branch:
- master
- develop
event:
- push
- pull_request