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