forked from cosmicpython/code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_app.bat
56 lines (44 loc) · 804 Bytes
/
run_app.bat
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@echo off
setlocal
:: Установка переменных среды
set COMPOSE_DOCKER_CLI_BUILD=1
set DOCKER_BUILDKIT=1
:all
call :down
call :build
call :up
call :test
goto :eof
:build
docker-compose build
goto :eof
:up
docker-compose up -d
goto :eof
:down
docker-compose down --remove-orphans
goto :eof
:test
call :up
call :unit-tests
call :integration-tests
call :e2e-tests
goto :eof
:unit-tests
docker-compose run --rm --no-deps --entrypoint=pytest api /tests/unit
goto :eof
:integration-tests
call :up
docker-compose run --rm --no-deps --entrypoint=pytest api /tests/integration
goto :eof
:e2e-tests
call :up
docker-compose run --rm --no-deps --entrypoint=pytest api /tests/e2e
goto :eof
:logs
docker-compose logs api | tail -100
goto :eof
:black
black -l 86 %cd%\*.py
:end
endlocal