Switch CI to Makefile
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
079dc940a3
commit
a69842af30
13
.drone.yml
13
.drone.yml
|
@ -1,15 +1,20 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: tests-integration
|
name: tests-integration
|
||||||
steps:
|
steps:
|
||||||
|
- name: wait
|
||||||
|
image: golang:1.13
|
||||||
|
commands:
|
||||||
|
- go run scripts/testutils.go wait
|
||||||
|
environment:
|
||||||
|
POSTGRES: postgresql://root@pg:5432/core?sslmode=disable
|
||||||
- name: setup
|
- name: setup
|
||||||
image: postgres
|
image: postgres
|
||||||
commands:
|
commands:
|
||||||
- sleep 5
|
|
||||||
- cat postgres/*.sql | psql --host pg --user root --db core
|
- cat postgres/*.sql | psql --host pg --user root --db core
|
||||||
- name: go
|
- name: go
|
||||||
image: golang:1.12
|
image: golang:1.13
|
||||||
commands:
|
commands:
|
||||||
- go test -tags=integration
|
- make test_integration
|
||||||
environment:
|
environment:
|
||||||
POSTGRES: postgresql://root@pg:5432/core?sslmode=disable
|
POSTGRES: postgresql://root@pg:5432/core?sslmode=disable
|
||||||
services:
|
services:
|
||||||
|
@ -33,7 +38,7 @@ steps:
|
||||||
- name: go
|
- name: go
|
||||||
image: golang:1.12
|
image: golang:1.12
|
||||||
commands:
|
commands:
|
||||||
- go test -tags=unit
|
- make test_unit
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
Loading…
Reference in New Issue