File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# Add additional stages in the order of execution here, and then under the job:include: key
33dist : " focal" # Ubuntu 20.04
44stages :
5- - name : " Lint"
6- - name : " Build"
7- - name : " Unit Test"
5+ - name : " lint"
6+ - name : " build"
7+ - name : " test"
8+ - name : " deploy"
9+ if : " branch = master"
810
911language : " python"
12+ python :
13+ - 3.6
14+ - 3.7
15+ # - 3.8
16+ # - 3.9
1017
1118services :
1219 - " docker"
1623 # yamllint disable-line rule:line-length
1724 - secure : " oSEtMKAmz3dlzrFnRLp3D/KgdSFy7XmVv6c3aSP7LXi8L2ljRrqFOB6BU3RQ6hNbSF3/bvpM9I4QKfZmOyId23Pr5UoMzaN8eL+xL8ZLkjZp0ngVZcCeXRvGwcmg4WJvVOnq3T/NoC/zwtsZbUt19yIJVVCEQqc84im90g6cLNMUulxQOvh6M/qgW4AFhAfi7lUFybl/RiWZYhvFchWifYTj7IfvZSDtin4UStJj7UApguqW4SseTZ/bmt18GSkOn9WO0sOaUSkehkT3NEMy97TLY73KgYb3LNrP47C2NPYQyyzJdb0szJ9CcVKtFjBBl5bqN5MGW/fqtqbh84Jq2GhTHNiYBcu6u/CJ+fscWYJkEWo0nNeED/ef8Vwv1M/q68IVeWsNO3+Se41WvOhMRsM8u1ek6+sHyyTNcVpGIUw4phHBsfCNiIlydWr8VpjZv9N3E4KqKRyjtpOoZElY11ZJa5rEL4D0s3JgSug958dYg/vsh+QVivNb9bbC/o9vBFqZGhWzGmNW2F3ezODZ9JcBlf1TEIZf8QPAHEO2SF5XCVRcDyByefqW28pOzwgk9Acl1/zIh5fiH/9ZAemlxjr17t4DQQbeQ/wbF6Gsmn0cYYoxjWMSrLqMD7TRQOTAYcxWAOKN/hCK/K6DS96r2CW5pU506zKMvezrskDmmX0="
1825
26+ # Script & Before Script for test stage
27+ before_script :
28+ - " pip install invoke poetry toml"
29+ - " poetry install"
30+ script :
31+ - " invoke pytest --local"
32+
1933jobs :
2034 include :
21- - stage : " Lint "
35+ - stage : " lint "
2236 env :
2337 - " INVOKE_LOCAL=True"
2438 before_script :
@@ -31,34 +45,23 @@ jobs:
3145 - " invoke flake8"
3246 - " invoke yamllint"
3347 - " invoke pylint"
34- python : " 3.7"
48+ python : 3.7
3549
36- - stage : " Build "
50+ - stage : " build "
3751 before_script :
3852 - " pip install invoke poetry toml"
3953 script :
4054 - " invoke build-image --nocache"
4155 - " poetry build"
42- python : " 3.7"
43-
44- - stage : " Unit Test"
45- before_script :
46- - " pip install invoke poetry toml"
47- - " poetry install"
48- script :
49- - " invoke pytest --local"
50- python :
51- - " 3.6"
52- - " 3.7"
53- # - "3.8"
54- # - "3.9"
55-
56+ python : 3.7
5657
57- deploy :
58- provider : " script"
59- script : " poetry config pypi-token.pypi $PYPI_TOKEN && poetry publish --build"
60- skip_cleanup : true
61- " on " :
62- tags : true
63- branch : " master"
64- python : " 3.7"
58+ - stage : " deploy"
59+ script : skip
60+ deploy :
61+ provider : " script"
62+ script : " poetry config pypi-token.pypi $PYPI_TOKEN && poetry publish --build"
63+ skip_cleanup : true
64+ " on " :
65+ tags : true
66+ branch : " master"
67+ python : 3.7
You can’t perform that action at this time.
0 commit comments