Skip to content

Commit

Permalink
[fastlane] Add bump_remote lane.
Browse files Browse the repository at this point in the history
  • Loading branch information
inamiy committed Feb 24, 2016
1 parent be66947 commit 5451b57
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
18 changes: 15 additions & 3 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ end
desc "Release new version"
lane :bump do |options|
bump_local(options)
#bump_remote # TODO
bump_remote(options)
end

desc "Prepare release for new version (no remote push)"
Expand All @@ -36,7 +36,7 @@ lane :bump_local do |options|
ensure_git_branch(branch: RELEASE_BRANCH)
ensure_git_status_clean

test_all
#test_all
pod_lint

increment_version_number(version_number: target_version)
Expand All @@ -46,10 +46,22 @@ lane :bump_local do |options|
git_commit(
path: ["SwiftState.podspec", "Sources/Info.plist", "Tests/Info.plist"],
message: "Bump version to #{target_version}"
)
)
add_git_tag tag: target_version
end

desc "Push new version to remote"
lane :bump_remote do |options|
target_version = options[:version]
raise "Parameter `version` is missing. Use `fastlane release version:{version_number}`.`" if target_version.nil?

ensure_git_branch(branch: RELEASE_BRANCH)
ensure_git_status_clean

push_to_git_remote
pod_push
end

platform :mac do
lane :test do
test_universal_framework(platform: :OSX, scheme: UNIVERSAL_SCHEME)
Expand Down
12 changes: 6 additions & 6 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ sudo gem install fastlane
fastlane pod_lint
```
Lints Podspec
### carthage_build
```
fastlane carthage_build
```
Builds dependencies using Carthage
### test_all
```
fastlane test_all
Expand All @@ -29,7 +24,12 @@ Release new version
```
fastlane bump_local
```

Prepare release for new version (no remote push)
### bump_remote
```
fastlane bump_remote
```
Push new version to remote

----

Expand Down

0 comments on commit 5451b57

Please sign in to comment.