Skip to content

Commit

Permalink
[app_store] [clowntown] v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachOrr committed May 19, 2019
1 parent 15c3851 commit d4882c0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ stages:
if: (type == cron)
- name: test
if: NOT ((type == push AND commit_message =~ \[clowntown\]) OR (type == cron))
- name: app_store
if: (type == push) AND (branch == master) AND (commit_message =~ \[app_store\])
- name: beta
if: (type == push) AND (branch == master) AND (commit_message =~ \[beta\])

Expand Down Expand Up @@ -50,6 +52,10 @@ jobs:
script:
- bundle exec fastlane setup_secrets
- bundle exec fastlane beta_ci
- stage: app_store
script:
- bundle exec fastlane setup_secrets
- bundle exec fastlane app_store

after_failure:
- gem install second_curtain
Expand Down
2 changes: 1 addition & 1 deletion fastlane/Deliverfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# For more information, check out the docs
# https://docs.fastlane.tools/actions/deliver/

build_number(99)
force(true)
submit_for_review(true)
automatic_release(true)
13 changes: 9 additions & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ platform :ios do

slack(channel: "#github-ios", message: "Shipping #{current_git_tag} to TestFlight...", default_payloads: [])
pilot(changelog: commit_changelog, distribute_external: true, groups: ["Beta"], reject_build_waiting_for_review: true)

slack(
channel: "#github-ios",
message: "#{current_git_tag} uploaded to TestFlight 🎉",
Expand All @@ -75,12 +74,12 @@ platform :ios do

desc "Upload a new build to the App Store"
lane :app_store do
setup_secrets

preship
build

deliver
ship_github(is_prerelease: false) # Create GitHub release
slack(channel: "#app-releases", message: "Shipping iOS #{current_version} to the App Store 🎉\nhttps://github.com/the-blue-alliance/the-blue-alliance-ios/releases/tag/#{current_version}")
slack(channel: "#app-releases", message: "Shipping iOS #{current_version} to the App Store 🎉\n```\n#{commit_changelog}\n```\nhttps://github.com/the-blue-alliance/the-blue-alliance-ios/releases/tag/#{current_version}")

new_version(version_type: 'patch')
beta_ci
Expand Down Expand Up @@ -109,6 +108,12 @@ platform :ios do
increment_build_number(build_number: testflight_build_number + 1)
end

desc "Perform pre-App Store tasks"
private_lane :preship do
# Set our build number to 99 for the App Store
increment_build_number(build_number: 99)
end

desc "Perform codesign/build tasks"
private_lane :build do
configure_code_signing
Expand Down

0 comments on commit d4882c0

Please sign in to comment.