This repository was archived by the owner on Jul 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to write custom FlankRun tasks (#11)
- Loading branch information
1 parent
8032371
commit 8406815
Showing
4 changed files
with
52 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Creating test tasks manually | ||
|
||
tasks.register<FlankRunTask>("myFlankRunTask") { | ||
// `flankExecutable` is the configuration cotaining flank dependency | ||
flankJarClasspath.from(flankExecutable) | ||
|
||
// Set the credentials file | ||
serviceAccountCredentials.set(...) | ||
|
||
// Any string you want to use, usually the variant we are testing | ||
// It will be used in the path to store the results in your build: "build/flank/$variant" | ||
variant.set(...) | ||
|
||
// The flank yaml file, it can be the output of a task or a file you created manually for example. | ||
// It's important that you use relative paths to your apks if you wan't it to be cacheable | ||
flankYaml.set(...) | ||
|
||
// Do you want your task to be cacheable? defaults to false | ||
hermeticTests.set(true) | ||
|
||
// Set any Provider<RegularFile> that will provide the APKs | ||
// Must be the same you used for the yaml | ||
appApk(...) | ||
testApk(...) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters