@@ -11,11 +11,11 @@ def matrix = [
1111 ' target' : ' i686-linux-android' ,
1212 ' test' : true ,
1313 ],
14- ' cliqz-alpha' :[
14+ /* 'cliqz-alpha':[
1515 'bundleid': 'com.cliqz.browser.alpha',
1616 'target': 'arm-linux-androideabi',
1717 'test': false,
18- ],
18+ ],*/
1919 ' ghostery-alpha' :[
2020 ' bundleid' : ' com.ghostery.android.alpha' ,
2121 ' target' : ' arm-linux-androideabi' ,
@@ -35,14 +35,14 @@ def build(Map m){
3535 def apk = " "
3636 def testsFolder = " cliqz-mobile-tests"
3737 setupTestInstance(
38- test,
39- " ami-6c24fc11" ,
40- " 1" ,
41- " t2.medium" ,
42- " android_ci_genymotion" ,
43- " sg-5bbf173f" ,
44- " subnet-341ff61f" ,
45- " us-east-1"
38+ test, // Boolean value for Running Tests
39+ " ami-6c24fc11" , // Amazon AWS AMI ID
40+ " 1" , // Count, Number of Instances
41+ " t2.medium" , // Instance Size
42+ " android_ci_genymotion" , // RSA Key
43+ " sg-5bbf173f" , // Secutiry Group ID of AWS
44+ " subnet-341ff61f" , // Subnet ID for the instance
45+ " us-east-1" // AWS Region
4646 ) {
4747 try {
4848 stage(' Checkout' ) {
@@ -55,10 +55,14 @@ def build(Map m){
5555 image. pull()
5656 image. inside {
5757 stage(' Build Cliqz React Native' ) {
58- cliqz. buildCliqzReactNative(" cliqz" )
58+ cliqz. buildCliqzReactNative(" cliqz" ) // Pass the Folder Name for the React Native SRC
5959 }
6060 stage(" Build APK: ${ flavorname} " ) {
61- apk = cliqz. buildBrowser(" ${ androidtarget} " , " ${ flavorname} " , " ci" )
61+ apk = cliqz. buildBrowser(
62+ " ${ androidtarget} " , // Target for the build
63+ " ${ flavorname} " , // Name of the Flavor
64+ " ci" // Type of the Build (CI, Nightly or Release)
65+ )
6266 archiveArtifacts allowEmptyArchive : true , artifacts : " build/${ apk} "
6367 }
6468 }
@@ -78,12 +82,22 @@ def build(Map m){
7882 " FLAVOR=${ flavorname} " ,
7983 " appPackage=${ bundleid} "
8084 ]) {
81- stage(' Genymotion ADB Connect' ) {
82- genymotion. connectGenyInstance(' da5f91e6-e1ca-4aac-94ea-352b6769228b' )
85+ stage(' Set Genymotion Resolution and Connect' ) {
86+ genymotion. genySetPhoneResolution(' da5f91e6-e1ca-4aac-94ea-352b6769228b' ) // Pass the Credentials ID for the AWS API Key
87+ genymotion. connectGenyInstance(' da5f91e6-e1ca-4aac-94ea-352b6769228b' ) // Pass the Credentials ID for the AWS API Key
88+ }
89+ stage(" Run UIA2 Tests & Upload Results: ${ flavorname} " ){
90+ timeout(10 ){
91+ cliqz. runUITests(" ${ flavorname} " ) // Pass the Flavor Name for running the UIAutomator Tests
92+ }
8393 }
84- stage(" Run Tests & Upload Results: ${ flavorname} " ) {
94+ stage(" Run Appium Tests & Upload Results: ${ flavorname} " ) {
8595 timeout(60 ) {
86- cliqz. runAppiumTests(" ${ testsFolder} " , " ${ flavorname} " , " ${ apk} " )
96+ cliqz. runAppiumTests(
97+ " ${ testsFolder} " , // Path to the Folder where the Tests are cloned.
98+ " ${ flavorname} " , // Flavor Name for running the UIAutomator Tests
99+ " ${ apk} " // Path to the APK used for testing.
100+ )
87101 }
88102 }
89103 }
@@ -95,7 +109,7 @@ def build(Map m){
95109 error ' Something Failed ! Check Logs above.'
96110 } finally {
97111 stage(' Clean Up' ) {
98- utils. cleanUp(" ${ testsFolder} " )
112+ utils. cleanUp(" ${ testsFolder} " ) // Path to the Folder where the Tests are cloned. This will delete the Tests Folder.
99113 }
100114 }
101115 }
0 commit comments