-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
35 lines (30 loc) · 1.02 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3'
tasks:
generate-docs:
desc: Generate OpenAPI documention in the docs folder.
cmds:
- swag init --parseDependency --parseInternal --generalInfo ./cmd/main.go
silent: false
start-build:
desc: Build and run system containers using Docker Compose.
cmds:
- task: generate-docs
- sudo docker compose -f ./docker-compose.yml --env-file .env up --build
silent: false
start:
desc: Run system containers using Docker Compose.
cmds:
- task: generate-docs
- sudo docker compose -f ./docker-compose.yml --env-file .env up
silent: false
test:
desc: Run system containers for test execution using Docker Compose.
cmds:
- sudo docker compose -f ./docker-compose-test.yml --env-file .env up
# - sudo docker exec -it template_api_test /bin/sh -c "go test ./... -v"
silent: false
test-build:
desc: Run tests using Docker Compose.
cmds:
- sudo docker compose -f ./docker-compose-test.yml --env-file .env up --build
silent: false