Skip to content

Commit

Permalink
chore: Incl migration in CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
placer14 committed Nov 16, 2020
1 parent 8af336c commit 195bff1
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
version: 2.1

executors:
golang:
docker:
- image: cimg/go:1.15.2
dockerizer:
docker:
- image: cimg/go:1.15.2
Expand All @@ -12,14 +9,27 @@ executors:

jobs:
test:
executor: golang
docker:
- image: cimg/go:1.15.2
- image: timescale/timescaledb:latest-pg12
environment:
POSTGRES_PASSWORD: password
steps:
- checkout
- run:
name: install dockerize
command: wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
environment:
DOCKERIZE_VERSION: v0.3.0
- run: sudo apt-get update
- run: sudo apt-get install -y pkg-config jq
- run: make deps
- run: make build
- run: make testshort
- run:
name: waiting for db
command: dockerize -wait tcp://localhost:5432 -timeout 1m
- run: ./visor migrate --latest

docker-build:
executor: dockerizer
Expand Down

0 comments on commit 195bff1

Please sign in to comment.