From 9f0cd5737eabbbe1ce9f7995ac02f836f5320292 Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Sat, 28 Sep 2019 23:07:08 +0800 Subject: [PATCH] Switch CI to Makefile --- .drone.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 01a880d..6247351 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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