File tree Expand file tree Collapse file tree 1 file changed +31
-28
lines changed Expand file tree Collapse file tree 1 file changed +31
-28
lines changed Original file line number Diff line number Diff line change 2
2
# Add additional stages in the order of execution here, and then under the job:include: key
3
3
dist : " focal" # Ubuntu 20.04
4
4
stages :
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"
8
10
9
11
language : " python"
12
+ python :
13
+ - 3.6
14
+ - 3.7
15
+ # - 3.8
16
+ # - 3.9
10
17
11
18
services :
12
19
- " docker"
16
23
# yamllint disable-line rule:line-length
17
24
- 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="
18
25
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
+
19
33
jobs :
20
34
include :
21
- - stage : " Lint "
35
+ - stage : " lint "
22
36
env :
23
37
- " INVOKE_LOCAL=True"
24
38
before_script :
@@ -31,34 +45,23 @@ jobs:
31
45
- " invoke flake8"
32
46
- " invoke yamllint"
33
47
- " invoke pylint"
34
- python : " 3.7"
48
+ python : 3.7
35
49
36
- - stage : " Build "
50
+ - stage : " build "
37
51
before_script :
38
52
- " pip install invoke poetry toml"
39
53
script :
40
54
- " invoke build-image --nocache"
41
55
- " 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
56
57
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