Skip to content

Commit

Permalink
Add FABERNOVEL Fastlane v6 configuration
Browse files Browse the repository at this point in the history
Change-Id: Id06c2f88422463f768522ef057f54af1dcd85e7b
  • Loading branch information
Nicolas Braun committed Jun 13, 2018
1 parent e6bb2c6 commit 033ce16
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ src/xxd/xxd.dSYM
*.xcodeproj/*.perspectivev3
*.xcodeproj/project.xcworkspace/
*.xcodeproj/xcuserdata/
**.xcuserstate
**IDEWorkspaceChecks.plist

# All platforms
*.rej
Expand Down Expand Up @@ -92,3 +94,30 @@ src/memfile_test
src/json_test
src/message_test
src/kword_test

##Fastlane
# fastlane specific
fastlane/report.xml

# deliver temporary files
fastlane/Preview.html

# snapshot generated screenshots
fastlane/screenshots

# scan temporary files
fastlane/test_output

#fastlane bundler
fastlane/Gemfile
fastlane/Gemfile.lock
fastlane/.bundle/config

#fastlane plugins
Pluginfile_fastlane
Gemfile_fastlane
Gemfile_fastlane.lock

#fastlane build artifacts
/build
/derived_data
4 changes: 2 additions & 2 deletions Vim.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
PROVISIONING_PROFILE_SPECIFIER = "$(PROFILE_UDID)";
PROVISIONING_PROFILE_SPECIFIER = "$(PROFILE_UUID_0)";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
Expand All @@ -1569,7 +1569,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
PROVISIONING_PROFILE_SPECIFIER = "$(PROFILE_UDID)";
PROVISIONING_PROFILE_SPECIFIER = "$(PROFILE_UUID_0)";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
Expand Down
102 changes: 102 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
import_from_git(url: 'ssh://git@codereview.technologies.fabernovel.com:29418/ADFastlane',
path: 'Fastfile_ios.rb',
branch: 'feature/v6_2')

override_lane :get_default_build_variant do
lane_context[:BUILD_VARIANT] = 'vimDistribution'
end

override_lane :get_project_configuration do
{
xcworkspace: 'Vim.xcworkspace',
xcodeproj: 'Vim.xcodeproj'
}
end

override_lane :get_variants_build_configurations do
{
'vimDebug' => {
scheme: 'Vim',
xcode_configuration: 'Debug',
target_name: 'Vim'
},
'vimDistribution' => {
scheme: 'Vim',
xcode_configuration: 'Distribution',
target_name: 'Vim'
}
}
end

override_lane :get_variants_to_build_on_ci do |options|
case options[:commit_type]
when 'merge'
variants = ['vimDebug']
when 'release'
variants = ['vimDebug']
else
variants = ['vimDebug']
end
variants
end

override_lane :get_variants_codesign_configurations do
CODESIGN_CONFIGURATION = {
bundles: ["com.applidium.Vim"],
fabernovel_bundles: ["com.applidium.Vim"],
provisioning_profile_templates: nil,
local_provisioning_profile_names: nil,
match_configuration: {
apple_id: "fastlane@fabernovel.com",
apple_id_password: lane_context[:ALL_CLI_OPTIONS][:apple_password],
team_id: "LL36D6ZV57",
team_name: "APPLIDIUM",
git_repository: "ssh://ci@codereview.technologies.fabernovel.com:29418/ADSigningAssets",
git_branch: "master",
git_password: lane_context[:ALL_CLI_OPTIONS][:match_password],
}
}
{
'vimDebug' => CODESIGN_CONFIGURATION,
'vimDistribution' => CODESIGN_CONFIGURATION
}
end

override_lane :get_variants_itunes_connect_configurations do
{
'vimDistribution' => {
apple_id: "fastlane@fabernovel.com",
apple_id_password: lane_context[:ALL_CLI_OPTIONS][:itc_password],
team_id: "221586",
team_name: 'APPLIDIUM',
itc_provider: "RomainGOYET12118548"
}
}
end

override_lane :get_variants_hockeyapp_configurations do
HOCKEYAPP_API_TOKEN = 'f2c0bd7767da492ca34c14684864a6e9'

{
'vimDistribution' => { api_token: HOCKEYAPP_API_TOKEN, public_identifier: nil } # Avoid sharing it on github. Pass it through CLI.
}
end

override_lane :get_project_tests_configurations do
{}
end

override_lane :get_test_configurations_for_ci do
{}
end

override_lane :get_appstore_screenshots_test_configuration do
{}
end

override_lane :get_slack_configuration do
{
channel: 'ad-vim',
slack_url: nil
}
end

0 comments on commit 033ce16

Please sign in to comment.