4
1
Fork 0

Switch CI to Makefile

pull/24/head
Ambrose Chua 2019-09-28 23:07:08 +08:00
parent 079dc940a3
commit 9f0cd5737e
Signed by: ambrose
GPG Key ID: BC367D33F140B5C2
1 changed files with 9 additions and 4 deletions

View File

@ -1,15 +1,20 @@
kind: pipeline
name: tests-integration
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
image: postgres
commands:
- sleep 5
- cat postgres/*.sql | psql --host pg --user root --db core
- name: go
image: golang:1.12
image: golang:1.13
commands:
- go test -tags=integration
- make test_integration
environment:
POSTGRES: postgresql://root@pg:5432/core?sslmode=disable
services:
@ -33,7 +38,7 @@ steps:
- name: go
image: golang:1.12
commands:
- go test -tags=unit
- make test_unit
trigger:
branch:
- master