Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/willnewby/qq. A fast, lightweight job queue based on Postgres, Go and Bash
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768version: "3"
tasks: init: desc: Run database migrations cmds: - go install github.com/riverqueue/river/cmd/river@latest - go run . init
fmt: desc: Format the code cmds: - go fmt ./...
build: desc: Build the project cmds: - go build -o dist/qq .
test: desc: Run unit tests cmds: - go test ./... -short
test:unit: desc: Run unit tests cmds: - go test ./... -short
test:integration: desc: Run integration tests (requires Docker) cmds: - | if ! docker info > /dev/null 2>&1; then echo "ERROR: Docker is not running or not available" exit 1 fi - go test ./... -run=Integration -v
test:python: desc: Run Python client tests (requires Docker) dir: clients/python cmds: - | if ! docker info > /dev/null 2>&1; then echo "ERROR: Docker is not running or not available" exit 1 fi - python -m unittest discover tests
test:all: desc: Run all tests (unit, integration, python) cmds: - task: test:unit - task: test:integration - task: test:python
run: desc: Run the project cmds: - go run . -- -
clean: desc: Clean the project cmds: - rm -rf dist/* - rm -f qq_test