4
1
Fork 0

Add Drone pipeline

pull/24/head
Ambrose Chua 2019-09-01 00:18:29 +08:00
parent 54fc06e388
commit 0bd5238096
3 changed files with 41 additions and 12 deletions

40
.drone.yml Normal file
View File

@ -0,0 +1,40 @@
kind: pipeline
name: tests-integration
steps:
- 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
volumes:
- ./postgres:/docker-entrypoint-initdb.d:ro
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

13
.gitignore vendored
View File

@ -1,12 +1 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
node_modules/