Skip to content

Commit

Permalink
DRY Fastfile and stop tracking fastlane/README.md (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio authored Aug 30, 2022
2 parents a691df9 + a7d666c commit 04b0ee2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 44 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ Secrets.swift
# Fastlane
/fastlane/report.xml
/fastlane/test_output
/fastlane/README.md
.build
17 changes: 11 additions & 6 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# frozen_string_literal: true

BUILD_FOLDER = File.join(__dir__, '.build')
BUILD_LOG_PATH = File.join(BUILD_FOLDER, 'logs')
DERIVED_DATA_PATH = File.join(BUILD_FOLDER, 'derived-data')
PROJECT_PATH = File.join(__dir__, 'TracksDemo', 'TracksDemo.xcodeproj')

default_platform(:ios)

platform :ios do
desc 'Builds the project and runs tests'
lane :test do
run_tests(
scheme: 'TracksDemo',
project: 'TracksDemo/TracksDemo.xcodeproj',
project: PROJECT_PATH,
devices: ['iPhone 11'],
deployment_target_version: '14.5',
prelaunch_simulator: true,
buildlog_path: File.join(__dir__, '.build', 'logs'),
derived_data_path: File.join(__dir__, '.build', 'derived-data')
buildlog_path: BUILD_LOG_PATH,
derived_data_path: DERIVED_DATA_PATH
)
end
end
Expand All @@ -22,9 +27,9 @@ platform :mac do
lane :test do
run_tests(
scheme: 'TracksDemo Mac',
project: 'TracksDemo/TracksDemo.xcodeproj',
buildlog_path: File.join(__dir__, '.build', 'logs'),
derived_data_path: File.join(__dir__, '.build', 'derived-data')
project: PROJECT_PATH,
buildlog_path: BUILD_LOG_PATH,
derived_data_path: DERIVED_DATA_PATH
)
end
end
38 changes: 0 additions & 38 deletions fastlane/README.md

This file was deleted.

0 comments on commit 04b0ee2

Please sign in to comment.