From 0bd5238096db69027288c69be9bdca9d83c4212c Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Sun, 1 Sep 2019 00:18:29 +0800 Subject: [PATCH] Add Drone pipeline --- .drone.yml | 40 +++++++++++++++++++ .gitignore | 13 +----- ...ting.yml => docker-compose.integration.yml | 0 3 files changed, 41 insertions(+), 12 deletions(-) create mode 100644 .drone.yml rename docker-compose.testing.yml => docker-compose.integration.yml (100%) diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ce3e4ac --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/.gitignore b/.gitignore index f2dd955..c2658d7 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ diff --git a/docker-compose.testing.yml b/docker-compose.integration.yml similarity index 100% rename from docker-compose.testing.yml rename to docker-compose.integration.yml