-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathTaskfile.yml
More file actions
35 lines (24 loc) · 783 Bytes
/
Taskfile.yml
File metadata and controls
35 lines (24 loc) · 783 Bytes
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
# https://taskfile.dev
version: '3'
vars:
PYTHONPATH: ./
DOCKER_IMAGE: lechuckroh/gitlab-migration
tasks:
# generate requirements.txt from requirements.in
freeze: pip-compile
# upgrade pip
update-pip: python -m pip install --upgrade pip
# list outdated packages
outdated: pip list --outdated
# upgrade all packages
upgrade-all:
- pip-compile --upgrade
- task: install
# install packages
install: pip install -r requirements.txt
install-ci: source venv/bin/activate && pip install -r requirements.txt
# format source codes using black
black: black --line-length=120 {{.PYTEST_TARGET}}
docker-build: docker build -t {{.DOCKER_IMAGE}} .
docker-push: docker push {{.DOCKER_IMAGE}}
exec-drone: drone exec --secret-file secrets.txt