robotframework circlecilibrary
0.1.3
RobotFramework-CircleCilibraryは、RobotFrameworkがトリガーおよびマンジサークレチパイプラインのための拡張ライブラリです。
PIP経由でRobotFramework-CircleCilibraryをインストールします。
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 .テストを実行するには、そもそもTOXをインストールする必要があります。
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