Skip to content

Commit

Permalink
Fix order of operations on fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 committed Nov 17, 2017
1 parent 6aac8b4 commit c243090
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions fastlane/Fastfile
Expand Up @@ -152,15 +152,6 @@ platform :ios do

desc "Runs build when on Travis"
lane :ci do
slack(message: "Beginning Travis CI build")
create_keychain(
name: ENV["MATCH_KEYCHAIN_NAME"],
password: ENV["MATCH_PASSWORD"],
timeout: 3600,
default_keychain: true,
)

sh("security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{ENV["HOMEASSISTANT_CERTIFICATE_KEY"]} #{ENV["MATCH_KEYCHAIN_NAME"]}")
if is_ci && ENV["TRAVIS_PULL_REQUEST"] == "false" && git_branch == "master"
ENV["FASTLANE_PASSWORD"] = ENV["HOMEASSISTANT_ITUNES_PASSWORD"]

Expand All @@ -173,6 +164,17 @@ platform :ios do
readonly: true,
keychain_name: ENV["MATCH_KEYCHAIN_NAME"],
keychain_password: ENV["MATCH_PASSWORD"])

slack(message: "Beginning Travis CI build")
create_keychain(
name: ENV["MATCH_KEYCHAIN_NAME"],
password: ENV["MATCH_PASSWORD"],
timeout: 3600,
default_keychain: true,
)

sh("security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{ENV["HOMEASSISTANT_CERTIFICATE_KEY"]} #{ENV["MATCH_KEYCHAIN_NAME"]}")

itunes
end
end
Expand Down

0 comments on commit c243090

Please sign in to comment.