diff --git a/.circleci/config.yml b/.circleci/config.yml index 08cbad0a..1fd61686 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,5 +11,5 @@ jobs: - run: chmod +x ./cc-test-reporter - run: go get -v -t -d ./... - run: ./cc-test-reporter before-build - - run: go test -coverprofile=./c.out -v -race ./... + - run: ./dockertest.sh - run: ./cc-test-reporter after-build -p $(go list -m) --exit-code $? \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..0db9b50a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +version: "3.7" + +services: + redis: + image: redislabs/rejson:latest + ports: + - "6379:6379" \ No newline at end of file diff --git a/dockertest.sh b/dockertest.sh new file mode 100755 index 00000000..a17656f9 --- /dev/null +++ b/dockertest.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e + +docker-compose up -d +go test -coverprofile=./c.out -v -race ./... +docker-compose down \ No newline at end of file