Skip to content

Commit

Permalink
fix msg in Taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
b1ron committed Nov 2, 2023
1 parent 5ef3510 commit e8033e8
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
version: "3"

vars:
REPLSET: postgres mongodb_replset init_mongodb_replset
DB: ""
TEST: ""
PARALLEL: 0
Expand Down Expand Up @@ -43,22 +42,12 @@ tasks:
--build {{.DB}}
preconditions:
- sh: "test {{.DB}}"
msg: "Please set DB variable to one of `ferretdb`, `mongodb`"
msg: "Please set DB variable to one of `postgresql`, `sqlite`, or `mongodb`"

env-pull:
cmds:
- docker compose build --pull

env-up-repl:
desc: "Start a minimal environment for testing a single-node replica set"
cmds:
# use -t instead of --timeout / --wait-timeout to be compatible with all versions:
# https://github.com/docker/compose/issues/10269#issuecomment-1495205234
- >
docker compose up --remove-orphans --renew-anon-volumes -t 0 --detach
--build {{.REPLSET}}
- task: env-logs

env-logs:
cmds:
- docker compose ps --all
Expand All @@ -81,7 +70,7 @@ tasks:
- go run ../cmd/dance -db={{.DB}} -p={{.PARALLEL}} {{.TEST}}
preconditions:
- sh: "test {{.DB}}"
msg: "Please set DB variable to one of `ferretdb`, `mongodb`"
msg: "Please set DB variable to one of `postgresql`, `sqlite`, or `mongodb`"

lint:
desc: "Run linters"
Expand Down

0 comments on commit e8033e8

Please sign in to comment.