-
Notifications
You must be signed in to change notification settings - Fork 119
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
refactor: ios test artifacts cleanup #1345 #1350
Conversation
Title does not follow the guidelines of Conventional Commits.
|
Title does not follow the guidelines of Conventional Commits.
|
flank-scripts/src/main/kotlin/flank/scripts/shell/ops/BuildGameLoopExampleCommand.kt
Outdated
Show resolved
Hide resolved
flank-scripts/src/main/kotlin/flank/scripts/shell/ios/IosBuildCommand.kt
Outdated
Show resolved
Hide resolved
flank-scripts/src/main/kotlin/flank/scripts/shell/ops/BuildTestPlansExample.kt
Show resolved
Hide resolved
@@ -0,0 +1,3 @@ | |||
gcloud alpha firebase test ios run \ | |||
--type game-loop --app build/ipa/FlankGameLoopExample.ipa --scenario-numbers 1 \ | |||
--device model=iphone11,version=13.6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--device model=iphone11,version=13.6 | |
--device model=iphone11,version=13.6 | |
flank-scripts/src/main/kotlin/flank/scripts/shell/ios/IosBuildCommand.kt
Outdated
Show resolved
Hide resolved
flank-scripts/src/main/kotlin/flank/scripts/shell/ios/IosBuildCommand.kt
Outdated
Show resolved
Hide resolved
Title does not follow the guidelines of Conventional Commits.
|
Timestamp: 2020-12-01 12:02:43 |
Codecov Report
@@ Coverage Diff @@
## master #1350 +/- ##
=========================================
Coverage 77.81% 77.81%
Complexity 705 705
=========================================
Files 244 244
Lines 4693 4693
Branches 901 901
=========================================
Hits 3652 3652
Misses 550 550
Partials 491 491 |
I try to run
but all test crash with message
on ip8 all test pass |
flank-scripts/src/main/kotlin/flank/scripts/shell/ops/iOSOpsCommand.kt
Outdated
Show resolved
Hide resolved
|
||
object IosOpsCommand : CliktCommand(name = "ios", help = "Build ios test artifacts") { | ||
|
||
private val generate: Boolean by option(help = "Make build").flag("-g", default = true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot find any purpose for this option.
private val generate: Boolean by option(help = "Make build").flag("-g", default = true) |
override fun run() { | ||
if (generate.not()) return | ||
listOf( | ||
BuildEarlGreyExampleCommand, | ||
BuildGameLoopExampleCommand, | ||
BuildTestPlansExample, | ||
BuildFlankExampleCommand | ||
).forEach { | ||
it.run() | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
override fun run() { | |
if (generate.not()) return | |
listOf( | |
BuildEarlGreyExampleCommand, | |
BuildGameLoopExampleCommand, | |
BuildTestPlansExample, | |
BuildFlankExampleCommand | |
).forEach { | |
it.run() | |
} | |
} | |
override fun run() = listOf( | |
BuildEarlGreyExampleCommand, | |
BuildGameLoopExampleCommand, | |
BuildTestPlansExample, | |
BuildFlankExampleCommand | |
).forEach(CliktCommand::run) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Build
directory for ios test projects is not added to .gitignore
|
|
08709f3
to
be0dfe9
Compare
fe1d0a5
to
0f30ec4
Compare
Hey, when I try to run
Is the description is up to date? |
I build artifacts, and I try to run
|
Looks like Flank's default device is iphone8 running iOS 12 which is no longer supported by FTL, updating... |
Co-authored-by: Jan Góral <60390247+jan-gogo@users.noreply.github.com>
Temporary removed gameloop build from iOSOpsCommand
Renamed IosOpsCommand file
* fixed indentation
…tPlansExample.kt Co-authored-by: Jan Góral <60390247+jan-gogo@users.noreply.github.com>
8519b4b
to
20da711
Compare
@@ -27,7 +27,7 @@ shadowJar.apply { | |||
} | |||
} | |||
// <breaking change>.<feature added>.<fix/minor change> | |||
version = "1.0.0" | |||
version = "1.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@piotradamczyk5 FYI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
@@ -382,7 +382,7 @@ fun execAndGetStdout(vararg args: String): String { | |||
} | |||
|
|||
val resolveArtifacts by tasks.registering { | |||
dependsOn(":flank-scripts:download") | |||
dependsOn(":flank-scripts:prepareJar") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@piotradamczyk5 FYI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Build works
- Default ios device updated
- Tested
simple-ios-flank.yml
and works as expected
Great work! 👍
#1345 - iOS Tests artifacts cleanup
Changes:
Previously:
![Screenshot 2020-11-25 at 13 36 07](https://user-images.githubusercontent.com/31246956/100228584-2f5e4480-2f23-11eb-9292-112335fd3db1.png)
Now:
![Screenshot 2020-11-25 at 13 28 07](https://user-images.githubusercontent.com/31246956/100228420-f1f9b700-2f22-11eb-95db-b9291d83cc38.png)
Test Plan
test_artifacts
directory.flankScripts shell ops ios
, this command should generate all ios artifacts one by one, and copy each to localtest_artifacts
dir.test_artifacts
directory is containing the following directories: [ EarlGreyExample, FlankExample, FlankGameLoopExample, FlankTestPlansExample ]Checklist