robotframework circlecilibrary
0.1.3
Robotframework-Circlecilibrary ist eine Erweiterungsbibliothek für die Robotframework, um Circleci-Pipelines auszulösen und zu mischen.
Installieren Sie Robotframework-Circlecilibrary über PIP:
pip install --upgrade robotframework-circlecilibraryJetzt können Sie eine Pipeline auslösen und warten, bis sie abgeschlossen ist:
*** 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 protokolliert alle Rückgabewerte, die von der Circleci-API empfangen werden:
robot --loglevel=TRACE pipeline.robot
Führen Sie das Setup aus, um alle Abhängigkeiten zu installieren.
pip install .Um die Tests auszuführen, müssen Sie Giftstoffe überhaupt installieren:
pip3 install toxDanach können Sie den Test über Tox ausführen:
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 auf