robotframework circlecilibrary
0.1.3
Robotframework-CircleCilibrary是用於觸發和Mange Circleci管道的擴展庫。
通過PIP安裝RobotFramework-Circlebibrary:
pip install --upgrade robotframework-circlecilibrary現在,您可以觸發管道並等到完成:
*** Settings ***
Documentation Handle circleci pipeline example
Library CircleciLibrary api_token= %{ CIRCLECI_API_TOKEN }
*** Test Cases ***
Trigger a circleci pipeline
${ project } Get Project my-project
${ pipeline } Trigger Pipeline
... ${ project } tag=2.0.1
Wait Until Keyword Succeeds 5m 2s
... All Workflows Should Be Stopped ${ pipeline }
All Workflows Should Have The Status ${ pipeline } successRobotFramework-CircleCilibrary將記錄從CircleCi API接收到的所有返回值:
robot --loglevel=TRACE pipeline.robot
運行設置以安裝所有依賴關係。
pip install .要運行測試,您首先需要安裝托克斯:
pip3 install tox之後,您可以通過TOX進行測試:
tox [distutils]
index-servers =
pip-test-account
pip-prod-account
[pip-test-account]
repository = https://test.pypi.org/legacy/
username = __token__
password = <generate your api token on https://test.pypi.org>
[pip-prod-account]
repository = https://upload.pypi.org/legacy/
username = __token__
password = <generate your api token on https://pypi.org>
make test_deploymake deploy