-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (46 loc) · 1.54 KB
/
Makefile
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
57
58
59
60
install:
. .venv/bin/activate; pip install -Ur dev-requirements.txt
activate:
. .venv/bin/activate
install_venv:
python3 -m venv .venv
. .venv/bin/activate; python -m pip install --upgrade pip
. .venv/bin/activate; python -m pip install -r dev-requirements.txt
formatter:
. .venv/bin/activate; command black --line-length 125 .
check_format:
. .venv/bin/activate; command black --line-length 125 . --check
remove_docker_containers:
docker compose ps -q | xargs docker rm
remove_docker_images:
docker compose config --images | xargs docker rmi
start:
docker compose -f docker-compose.yml up --build
start-test:
docker compose -f docker-compose-test.yml up --build
stop:
docker compose -f docker-compose-test.yml stop
test:
. .venv/bin/activate; command cd src; command python -m pytest
start_detached:
. .venv/bin/activate; docker compose -f docker-compose-test.yml up --build -d; command python src/is_service_ready.py
upgrade:
. .venv/bin/activate; pip-upgrade
free_up_space:
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo apt-get remove -y '^llvm-.*' || true
sudo apt-get remove -y 'php.*' || true
sudo apt-get remove -y google-cloud-sdk hhvm google-chrome-stable firefox mono-devel || true
sudo apt-get autoremove -y
sudo apt-get clean
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
df -h
run_it:
. .venv/bin/activate; command python src/run_it.py