Skip to content

Commit

Permalink
Merge pull request #7 from godrei/prepare_for_release
Browse files Browse the repository at this point in the history
prepare for share
  • Loading branch information
godrei committed Dec 18, 2015
2 parents ca1a8bf + 36b6b32 commit c64c416
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 6 deletions.
44 changes: 44 additions & 0 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 6 additions & 6 deletions step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ 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
is_skippable: false
dependencies: []
run_if: ""
inputs:
- xamarin_project:
- xamarin_project: $BITRISE_PROJECT_PATH
opts:
title: Path to Xamarin Project
description: |
Expand Down Expand Up @@ -72,5 +72,5 @@ outputs:
- failed
- BITRISE_XAMARIN_TEST_FULL_RESULTS_TEXT:
opts:
title: ""
title: Result of the tests.
description: ""

0 comments on commit c64c416

Please sign in to comment.