-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTaskfile.yml
78 lines (64 loc) · 2.25 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
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3'
tasks:
about:
desc: Generate about.py
cmds:
- ./scripts/api.sh ./scripts/version.sh
status:
- test -s archivist_samples/about.py
api:
desc: Build a docker environment with the right dependencies and utilities
cmds:
- docker build --no-cache --build-arg VERSION=3.8 -f Dockerfile -t datatrails-samples-api .
api-3.9:
desc: Build a docker environment with the right dependencies and utilities
cmds:
- docker build --no-cache --build-arg VERSION=3.9 -f Dockerfile -t datatrails-samples-api .
api-3.10:
desc: Build a docker environment with the right dependencies and utilities
cmds:
- docker build --no-cache --build-arg VERSION=3.10 -f Dockerfile -t datatrails-samples-api .
api-3.11:
desc: Build a docker environment with the right dependencies and utilities
cmds:
- docker build --no-cache --build-arg VERSION=3.11 -f Dockerfile -t datatrails-samples-api .
api-3.12:
desc: Build a docker environment with the right dependencies and utilities
cmds:
- docker build --no-cache --build-arg VERSION=3.12 -f Dockerfile -t datatrails-samples-api .
check:
desc: Check the style, bug and quality of the code
deps: [about]
cmds:
- ./scripts/api.sh python3 --version
- ./scripts/api.sh pycodestyle --format=pylint archivist_samples
- ./scripts/api.sh python3 -m pylint archivist_samples
clean:
desc: Clean git repo
cmds:
- git clean -fdX
format:
desc: Format code using black
deps: [about]
cmds:
- ./scripts/api.sh black archivist_samples
functests:
desc: Run samples tests in virtual env using local wheel package - local wheel must be present
cmds:
- ./scripts/functests.sh
publish:
desc: publish wheel package (will require username and password in TWINE_USERNAME,TWINE_PASSWORD)
deps: [about]
cmds:
- ./scripts/api.sh python3 -m twine check dist/*
- ./scripts/api.sh python3 -m twine upload --verbose --repository pypi dist/*
samples:
desc: Run samples tests
deps: [about]
cmds:
- ./scripts/api.sh ./scripts/samples.sh
wheel:
desc: Builds python wheel package
deps: [about]
cmds:
- ./scripts/api.sh ./scripts/wheel.sh