Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,30 @@ jobs:
name: Dry Run Release for purchases_ui_flutter
command: cd purchases_ui_flutter && flutter pub publish --dry-run

run-maestro-e2e-tests:
executor:
name: macos-executor
steps:
- checkout
- revenuecat/install-gem-mac-dependencies:
cache-version: v1
- setup-flutter
- install-correct-cocoapods
- revenuecat/install-maestro
- run:
name: Boot iOS Simulator
command: |
xcrun simctl boot "iPhone 16 Pro" || true
xcrun simctl bootstatus "iPhone 16 Pro" -b
- run:
name: Run Maestro E2E Tests
command: bundle exec fastlane run_maestro_e2e_tests
no_output_timeout: 15m
- store_test_results:
path: fastlane/test_output
- store_artifacts:
path: fastlane/test_output

update-hybrid-common-versions:
description: "Creates a PR updating purchases-hybrid-common to latest release"
docker:
Expand Down Expand Up @@ -636,6 +660,13 @@ workflows:
equal: [ bump, << pipeline.parameters.action >> ]
jobs:
- revenuecat/automatic-bump
maestro-e2e-tests:
when:
or:
- equal: ["maestro_e2e_tests", << pipeline.schedule.name >>]
jobs:
- run-maestro-e2e-tests

update-hybrid-common-versions:
when:
equal: [ upgrade-hybrid-common, << pipeline.parameters.action >> ]
Expand Down
4 changes: 4 additions & 0 deletions e2e-tests/MaestroTestApp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ ios/Pods/
ios/.symlinks/
ios/Flutter/Flutter.framework
ios/Flutter/Flutter.podspec
ios/Flutter/Generated.xcconfig
ios/Flutter/ephemeral/
ios/Flutter/flutter_export_environment.sh
.flutter-plugins
.flutter-plugins-dependencies
.metadata
pubspec.lock
34 changes: 34 additions & 0 deletions e2e-tests/MaestroTestApp/ios/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
**/dgph
*.mode1v3
*.mode2v3
*.moved-aside
*.pbxuser
*.perspectivev3
**/*sync/
.sconsign.dblite
.tags*
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig
Flutter/ephemeral/
Flutter/app.flx
Flutter/app.zip
Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
!default.pbxuser
!default.perspectivev3
41 changes: 41 additions & 0 deletions e2e-tests/MaestroTestApp/ios/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}

def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end

File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
use_frameworks!
use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
Loading