This repository has been archived by the owner on Dec 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
84 lines (81 loc) · 2.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
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
79
80
81
82
83
84
version: "3"
env:
GCGC_VERSION: v1.0.0
AWS_DEFAULT_REGION: us-west-2
tasks:
ci-test:
cmds:
- task: build
- task: black-check
- task: pydocstyle
- task: pylint
- task: test
build:
cmds:
- docker-compose build gcgc
black-check:
cmds:
- docker-compose run gcgc black --check .
pydocstyle:
cmds:
- docker-compose run gcgc pydocstyle --add-ignore=D202,D203,D301 --convention=google gcgc
shell:
cmds:
- docker-compose run --entrypoint /bin/bash gcgc
pylint:
cmds:
- docker-compose run gcgc pylint gcgc
test:
cmds:
- docker-compose run gcgc pytest --strict --doctest-modules -v -s --cov-report term-missing --cov=gcgc
test-py36:
cmds:
- docker-compose build --build-arg PY_VERSION=3.6 gcgc
- docker-compose run gcgc pytest --strict --doctest-modules -v -s --cov-report term-missing --cov=gcgc
gh-release:
cmds:
- docker-compose build hub
- docker-compose run hub
env:
GITHUB_TOKEN:
sh: echo "$GITHUB_TOKEN"
publish:
cmds:
- python -m pip install --pre -U twine setuptools-scm wheel
- python setup.py sdist bdist_wheel
- twine upload dist/*
env:
TWINE_USERNAME:
sh: echo "$TWINE_USERNAME"
TWIN_PASSWORD:
sh: echo "$TWINE_PASSWORD"
docs-mk:
cmds:
- cz ch
- cp ./CHANGELOG.md ./docs/
- cp ./README.md ./docs/index.md
- mkdocs build
docs-rm:
cmds:
- rm -rf ./site
docs-upload:
cmds:
- aws s3 cp --recursive ./site s3://gcgc.trenthauck.com/
docs-publish:
cmds:
- task: docs-rm
- task: docs-mk
- task: docs-upload
env:
AWS_SECRET_ACCESS_KEY:
sh: echo "$AWS_SECRET_ACCESS_KEY"
AWS_ACCESS_KEY_ID:
sh: echo "$AWS_ACCESS_KEY_ID"
docs-publish-docker:
cmds:
- docker-compose run gcgc task docs-publish
env:
AWS_SECRET_ACCESS_KEY:
sh: echo "$AWS_SECRET_ACCESS_KEY"
AWS_ACCESS_KEY_ID:
sh: echo "$AWS_ACCESS_KEY_ID"