From 36b6b32fc9ecfcd65165f528ba424e9c4d576435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krisztia=CC=81n=20Go=CC=88drei?= Date: Fri, 18 Dec 2015 12:09:34 +0100 Subject: [PATCH] prepare for share --- bitrise.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ step.yml | 12 ++++++------ 2 files changed, 50 insertions(+), 6 deletions(-) diff --git a/bitrise.yml b/bitrise.yml index 2fc5f7f..aeacfe0 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -25,3 +25,47 @@ workflows: - content: |- echo "BITRISE_XAMARIN_TEST_RESULT: $BITRISE_XAMARIN_TEST_RESULT" echo "BITRISE_XAMARIN_TEST_FULL_RESULTS_TEXT: $BITRISE_XAMARIN_TEST_FULL_RESULTS_TEXT" + + # ---------------------------------------------------------------- + # --- workflows to Share this step into a Step Library + share-this-step: + envs: + # if you want to share this step into a StepLib + - MY_STEPLIB_REPO_FORK_GIT_URL: + - STEP_ID_IN_STEPLIB: xamarin-android-test + - STEP_GIT_VERION_TAG_TO_SHARE: 0.9.0 + - STEP_GIT_CLONE_URL: https://github.com/bitrise-steplib/steps-xamarin-android-test.git + description: |- + If this is the first time you try to share a Step you should + first call: $ bitrise share + + This will print you a guide, and information about how Step sharing + works. Please read it at least once! + + As noted in the Step sharing guide you'll have to fork the + StepLib you want to share this step into. Once you're done with forking + the repository you should set your own fork's git clone URL + in the `.bitrise.secrets.yml` file, or here in the `envs` section, + as the value of the `MY_STEPLIB_REPO_FORK_GIT_URL` environment. + + You're now ready to share this Step, just make sure that + the `STEP_ID_IN_STEPLIB` and `STEP_GIT_VERION_TAG_TO_SHARE` + environments are set to the desired values! + + To share this Step into a StepLib you can just run: $ bitrise run share-this-step + + Once it finishes the only thing left is to actually create a Pull Request, + the way described in the guide printed at the end of the process. + steps: + - script: + inputs: + - content: |- + #!/bin/bash + set -e + set -x + + bitrise share start -c ${MY_STEPLIB_REPO_FORK_GIT_URL} + + bitrise share create --stepid ${STEP_ID_IN_STEPLIB} --tag ${STEP_GIT_VERION_TAG_TO_SHARE} --git ${STEP_GIT_CLONE_URL} + + bitrise share finish diff --git a/step.yml b/step.yml index e4ed4c2..533c0b6 100644 --- a/step.yml +++ b/step.yml @@ -2,13 +2,13 @@ title: "Xamarin android Test" summary: Xamarin android Test description: |- Xamarin android Test -website: https://github.com/bitrise-io/steps-xamarin-android-test -source_code_url: https://github.com/bitrise-io/steps-xamarin-android-test -support_url: https://github.com/bitrise-io/steps-xamarin-android-test/issues +website: https://github.com/bitrise-steplib/steps-xamarin-android-test +source_code_url: https://github.com/bitrise-steplib/steps-xamarin-android-test +support_url: https://github.com/bitrise-steplib/steps-xamarin-android-test/issues host_os_tags: - osx-10.10 project_type_tags: - - android + - xamarin type_tags: [] is_requires_admin_user: false is_always_run: false @@ -16,7 +16,7 @@ is_skippable: false dependencies: [] run_if: "" inputs: - - xamarin_project: + - xamarin_project: $BITRISE_PROJECT_PATH opts: title: Path to Xamarin Project description: | @@ -72,5 +72,5 @@ outputs: - failed - BITRISE_XAMARIN_TEST_FULL_RESULTS_TEXT: opts: - title: "" + title: Result of the tests. description: ""