-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Naylin Medina <nmedina@teclib.com>
- Loading branch information
Showing
12 changed files
with
4,884 additions
and
16 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 |
---|---|---|
|
@@ -11,3 +11,7 @@ fastlane/report.xml | |
coverage | ||
test-results | ||
spec/fixture | ||
|
||
## Package | ||
|
||
node_modules/ |
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 |
---|---|---|
|
@@ -177,3 +177,4 @@ Style/MethodCallWithArgsParentheses: | |
- context | ||
- before | ||
- after | ||
- include |
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,32 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# LICENSE | ||
# | ||
# This file is part of Teclib Fastlane Plugin Test Report. | ||
# | ||
# Fastlane Plugin Test Report is a subproject of Teclib' | ||
# | ||
# Fastlane Plugin Test Report is free software: you can redistribute | ||
# it and/or modify it under the terms of the MIT License. | ||
# | ||
# Fastlane Plugin Test Report is distributed in the hope that it will | ||
# be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
# See the MIT license for further details. | ||
# ------------------------------------------------------------------- | ||
# @author Naylin Medina - <nmedina@teclib.com> | ||
# @copyright Copyright Teclib. All rights reserved. | ||
# @license MIT https://opensource.org/licenses/MIT | ||
# @link https://github.com/TECLIB/fastlane-plugin-test_report/ | ||
# @link https://teclib.github.io/fastlane-plugin-test_report/ | ||
# @link http://www.teclib-edition.com/en/ | ||
# ------------------------------------------------------------------- | ||
# | ||
|
||
export CURRENT_VERSION=$(jq -r ".version" package.json) | ||
yarn standard-version --prerelease 'rc' | ||
export NEW_VERSION=$(jq -r ".version" package.json) | ||
ruby ./ci/scripts/version.rb $CURRENT_VERSION $NEW_VERSION | ||
|
||
gem build fastlane-plugin-test_report.gemspec | ||
gem push *.gem |
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,8 @@ | ||
#publish new version | ||
|
||
export CURRENT_VERSION=$(jq -r ".version" package.json) | ||
yarn standard-version | ||
export NEW_VERSION=$(jq -r ".version" package.json) | ||
ruby ./ci/scripts/version.rb $CURRENT_VERSION $NEW_VERSION | ||
gem build fastlane-plugin-test_report.gemspec | ||
gem push *.gem |
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,83 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# LICENSE | ||
# | ||
# This file is part of Teclib Fastlane Plugin Test Report. | ||
# | ||
# Fastlane Plugin Test Report is a subproject of Teclib' | ||
# | ||
# Fastlane Plugin Test Report is free software: you can redistribute | ||
# it and/or modify it under the terms of the MIT License. | ||
# | ||
# Fastlane Plugin Test Report is distributed in the hope that it will | ||
# be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
# See the MIT license for further details. | ||
# ------------------------------------------------------------------- | ||
# @author Naylin Medina - <nmedina@teclib.com> | ||
# @copyright Copyright Teclib. All rights reserved. | ||
# @license MIT https://opensource.org/licenses/MIT | ||
# @link https://github.com/TECLIB/fastlane-plugin-test_report/ | ||
# @link https://teclib.github.io/fastlane-plugin-test_report/ | ||
# @link http://www.teclib-edition.com/en/ | ||
# ------------------------------------------------------------------- | ||
# | ||
|
||
GITHUB_COMMIT_MESSAGE=$(git log --format=oneline -n 1 ${CIRCLE_SHA1}) | ||
|
||
if [[ $GITHUB_COMMIT_MESSAGE != *"ci(release): generate CHANGELOG.md for version"* ]]; then | ||
|
||
# Generate CHANGELOG.md and increment version | ||
IS_PRERELEASE="$( cut -d '-' -f 2 <<< "$CIRCLE_BRANCH" )"; | ||
|
||
if [[ $CIRCLE_BRANCH != "$IS_PRERELEASE" ]]; then | ||
PREFIX_PRERELEASE="$( cut -d '.' -f 1 <<< "$IS_PRERELEASE" )"; | ||
yarn standard-version -m "ci(release): generate CHANGELOG.md for version %s" --prerelease "$PREFIX_PRERELEASE" | ||
else | ||
yarn standard-version -m "ci(release): generate CHANGELOG.md for version %s" | ||
fi | ||
|
||
# Get version number from package.json | ||
export GIT_TAG=$(jq -r ".version" package.json) | ||
# Copy CHANGELOG.md to gh-pages branch | ||
yarn gh-pages -- -m "ci(docs): generate CHANGELOG.md for version ${GIT_TAG}" | ||
# Push commits and tags to origin branch | ||
git push --follow-tags origin $CIRCLE_BRANCH | ||
# Create release with conventional-github-releaser | ||
yarn conventional-github-releaser -p angular -t $GITHUB_TOKEN | ||
|
||
# get gem path | ||
GEM=$(find ./ -name '*.gem' | head -1) | ||
|
||
# Update release name | ||
yarn github-release edit \ | ||
--user $CIRCLE_PROJECT_USERNAME \ | ||
--repo $CIRCLE_PROJECT_REPONAME \ | ||
--tag ${GIT_TAG} \ | ||
--name "Test Report v${GIT_TAG}" \ | ||
|
||
# Upload example code release | ||
yarn github-release upload \ | ||
--user $CIRCLE_PROJECT_USERNAME \ | ||
--repo $CIRCLE_PROJECT_REPONAME \ | ||
--tag ${GIT_TAG} \ | ||
--name "${GIT_TAG}" \ | ||
--file ${GEM} | ||
|
||
# Update develop branch | ||
git fetch origin develop | ||
git checkout develop | ||
git clean -d -x -f | ||
git merge $CIRCLE_BRANCH | ||
git push origin develop | ||
|
||
# Update master branch | ||
git fetch origin master | ||
git checkout master | ||
git clean -d -x -f | ||
git merge $CIRCLE_BRANCH | ||
git push origin master | ||
|
||
# Remove release branch | ||
#git push origin :$CIRCLE_BRANCH | ||
fi |
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,7 @@ | ||
Dir.glob("lib/**/version.rb") do |search_file| | ||
file = File.open("#{search_file}", "r+") | ||
buffer = file.read.gsub("#{ARGV[0]}", "#{ARGV[1]}") | ||
file.rewind | ||
file.print buffer | ||
file.close | ||
end |
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.