Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI #1019

Merged
merged 3 commits into from
Mar 2, 2021
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
20 changes: 20 additions & 0 deletions .buildkite/pipeline.quick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ steps:
commands:
- make bootstrap
- make analyze test
artifact_paths:
- xcodebuild.log

- label: macOS 10.14 unit tests
timeout_in_minutes: 10
Expand All @@ -22,6 +24,8 @@ steps:
commands:
- make bootstrap
- make analyze test
artifact_paths:
- xcodebuild.log

- label: iOS 13 unit tests
timeout_in_minutes: 10
Expand All @@ -37,6 +41,8 @@ steps:
commands:
- make bootstrap
- make test
artifact_paths:
- xcodebuild.log

- label: iOS 12 unit tests
timeout_in_minutes: 10
Expand All @@ -52,6 +58,8 @@ steps:
commands:
- make bootstrap
- make test
artifact_paths:
- xcodebuild.log

- label: iOS 11 unit tests
timeout_in_minutes: 10
Expand All @@ -67,6 +75,8 @@ steps:
commands:
- make bootstrap
- make test
artifact_paths:
- xcodebuild.log

- label: iOS 10 unit tests
timeout_in_minutes: 10
Expand All @@ -81,6 +91,8 @@ steps:
commands:
- make bootstrap
- make test
artifact_paths:
- xcodebuild.log

- label: tvOS 13 unit tests
timeout_in_minutes: 10
Expand All @@ -96,6 +108,8 @@ steps:
commands:
- make bootstrap
- make test
artifact_paths:
- xcodebuild.log

- label: tvOS 12 unit tests
timeout_in_minutes: 10
Expand All @@ -111,6 +125,8 @@ steps:
commands:
- make bootstrap
- make test
artifact_paths:
- xcodebuild.log

- label: tvOS 11 unit tests
timeout_in_minutes: 10
Expand All @@ -126,6 +142,8 @@ steps:
commands:
- make bootstrap
- make test
artifact_paths:
- xcodebuild.log

- label: tvOS 10 unit tests
timeout_in_minutes: 10
Expand All @@ -139,6 +157,8 @@ steps:
commands:
- make bootstrap
- make test
artifact_paths:
- xcodebuild.log

- label: ':apple: macOS 10.15 full end-to-end tests'
depends_on:
Expand Down
10 changes: 10 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ steps:
commands:
- make bootstrap
- make analyze test
artifact_paths:
- xcodebuild.log

- label: iOS 14 unit tests
timeout_in_minutes: 10
Expand All @@ -75,6 +77,8 @@ steps:
commands:
- make bootstrap
- make test
artifact_paths:
- xcodebuild.log

- label: iOS 9 unit tests
timeout_in_minutes: 10
Expand All @@ -89,6 +93,8 @@ steps:
- make bootstrap
- TEST_CONFIGURATION=Debug make test
- TEST_CONFIGURATION=Release make test
artifact_paths:
- xcodebuild.log

- label: tvOS 14 unit tests
timeout_in_minutes: 10
Expand All @@ -102,6 +108,8 @@ steps:
commands:
- make bootstrap
- make test
artifact_paths:
- xcodebuild.log

- label: tvOS 9 unit tests
timeout_in_minutes: 10
Expand All @@ -115,6 +123,8 @@ steps:
commands:
- make bootstrap
- make test
artifact_paths:
- xcodebuild.log

- label: ':ios: iOS 14 barebones end-to-end tests'
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem 'xcpretty'

# A reference to Maze Runner is only needed for running tests locally and if committed it must be
# portable for CI, e.g. a specific release. However, leaving it commented out would mean quicker CI.
gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner', tag: 'v4.4.0'
gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner', tag: 'v4.11.1'

# Locally, you can run against Maze Runner branches and uncommitted changes:
# gem 'bugsnag-maze-runner', path: '../maze-runner'
14 changes: 7 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
GIT
remote: https://github.com/bugsnag/maze-runner
revision: acdffd98a16ecf7b32c4efbb9f38583e3a0c06ab
tag: v4.4.0
revision: b5925737b0c3db49ac38a5a68e6bfe38026ef508
tag: v4.11.1
specs:
bugsnag-maze-runner (4.4.0)
appium_lib (~> 10.2)
bugsnag-maze-runner (4.11.1)
appium_lib (~> 11.2.0)
boring (~> 0.1.0)
cucumber (~> 3.1.2)
cucumber-expressions (~> 6.0.0)
Expand All @@ -31,11 +31,11 @@ GEM
algoliasearch (1.27.5)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
appium_lib (10.6.0)
appium_lib_core (~> 3.3)
appium_lib (11.2.0)
appium_lib_core (~> 4.1)
nokogiri (~> 1.8, >= 1.8.1)
tomlrb (~> 1.1)
appium_lib_core (3.11.1)
appium_lib_core (4.4.1)
faye-websocket (~> 0.11.0)
selenium-webdriver (~> 3.14, >= 3.14.1)
atomos (0.1.3)
Expand Down
23 changes: 16 additions & 7 deletions features/steps/ios_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
)
end

When('I run {string} and relaunch the app') do |event_type|
steps %(
When("I run {string} and relaunch the app") do |event_type|
steps %Q{
When I run "#{event_type}"
And I relaunch the app
)
And I relaunch the app after a crash
}
end

When('I clear all persistent data') do
Expand Down Expand Up @@ -65,9 +65,18 @@ def click_if_present(element)
system("killall #{app} > /dev/null && sleep 1")
Maze.driver.get(app)
else
# This step should only be used when the app has crashed, but the notifier needs a little
# time to write the crash report before being forced to reopen.
sleep(2)
Maze.driver.launch_app
end
end

When("I relaunch the app after a crash") do
# This step should only be used when the app has crashed, but the notifier needs a little
# time to write the crash report before being forced to reopen. From trials, 2s was not enough.
sleep(5)
case Maze.driver.capabilities['platformName']
when 'Mac'
Maze.driver.get(Maze.driver.capabilities['app'])
else
Maze.driver.launch_app
end
end
Expand Down