-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: auto detect commit sha, add shorthand -r flag (#119)
- Loading branch information
Showing
10 changed files
with
316 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
# assumes you've set PACT_BROKER_BASE_URL, PACT_BROKER_TOKEN already | ||
|
||
bundle exec rake pact:publish:pactflow_auto_on_nil_commit_nil_branch | ||
bundle exec rake pact:publish:pactflow_auto_on_user_commit_user_branch | ||
bundle exec rake pact:publish:pactflow_auto_on_user_commit_nil_branch | ||
bundle exec rake pact:publish:pactflow_auto_on_nil_commit_user_branch | ||
bundle exec rake pact:publish:pactflow_auto_off_user_commit_nil_branch | ||
bundle exec rake pact:publish:pactflow_auto_off_nil_commit_nil_branch | ||
bundle exec rake pact:publish:pactflow_auto_off_empty_string_commit_nil_branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
# assumes you've set PACT_BROKER_BASE_URL, PACT_BROKER_USERNAME and PACT_BROKER_PASSWORD already | ||
# Must be executed from root directory of project. | ||
|
||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json --consumer-app-version=1.0.0 --tag master --verbose | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json --auto-detect-version-properties | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json --auto-detect-version-properties --tag-with-git-branch | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json --branch branch-user-override | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json --branch branch-user-override --auto-detect-version-properties | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json --branch branch-user-override --auto-detect-version-properties --tag-with-git-branch | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json --consumer-app-version commit-user-override | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json --consumer-app-version commit-user-override --branch branch-user-override | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json --consumer-app-version commit-user-override --auto-detect-version-properties | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json --consumer-app-version commit-user-override --auto-detect-version-properties --tag-with-git-branch | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json --consumer-app-version commit-user-override --branch branch-user-override --auto-detect-version-properties | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json --consumer-app-version commit-user-override --branch branch-user-override --auto-detect-version-properties --tag-with-git-branch | ||
|
||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json -r | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json -r -g | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json -h branch-user-override | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json -h branch-user-override -r | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json -h branch-user-override -r -g | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json -a commit-user-override | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json -a commit-user-override -r | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json -a commit-user-override -r -g | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json -a commit-user-override -h branch-user-override | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json -a commit-user-override -h branch-user-override -r | ||
bundle exec bin/pact-broker publish $(dirname "$0")/pact.json -a commit-user-override -h branch-user-override -r -g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.