Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[android] #5211 - run UI tests in our CI workflow - #6073

Merged
tobrun merged 1 commit into
masterfrom
tobrun-device-lab
Aug 18, 2016
Merged

tobrun merged 1 commit into
masterfrom
tobrun-device-lab

Conversation

@tobrun

@tobrun tobrun commented Aug 18, 2016 •

Copy link
Copy Markdown
Member

tl;dr: Integrates Google Firebase device lab into Bitrise

Closes #5211, For each commit pushed to this repo, our CI will run tests on Firebase device lab.

Benefit of his approach is that these tests are deployed on a real device but as downside it also increases the android build time from 10 -> 17 minutes with 4 minutes of actual device testing.

This PR includes:

  • added make target for generating debug and test apks
  • auth with Google service account credentials from bitrise configuration
  • auth with dev map accesstoken from bitrise configuration
  • runs tests on firebase device lab
  • fails the build a test test fails
  • ignored some tests that were failing
  • excluded locational test activities from test generation

Review @ivovandongen / @zugaldia ?

@tobrun tobrun added Android Mapbox Maps SDK for Android ✓ ready for review labels Aug 18, 2016
@tobrun tobrun added this to the android-v4.2.0 milestone Aug 18, 2016
@tobrun tobrun self-assigned this Aug 18, 2016
@mention-bot

Copy link
Copy Markdown

@tobrun, thanks for your PR! By analyzing this pull request, we identified @jfirebaugh, @tmpsantos and @1ec5 to be potential reviewers.

@tobrun

tobrun commented Aug 18, 2016

Copy link
Copy Markdown
Member Author

The build is still faster as the Travis build 👍

screen shot 2016-08-18 at 15 06 22

if (!(excludeActivities.indexOf(activityName) > -1)) {
console.log("Created file: "+filePath);
fs.writeFileSync(filePath, ejsConversionTask([activityName, subPackage]));
}else{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: small spacing issue

@ivovandongen

Copy link
Copy Markdown
Contributor

@tobrun Looks great, still runs locally. Go for it!

@tobrun

tobrun commented Aug 18, 2016

Copy link
Copy Markdown
Member Author

still runs locally

It seems you were surprised about that :trollface:

@tobrun

tobrun commented Aug 18, 2016

Copy link
Copy Markdown
Member Author

CI has approved, @ivovandongen confirmed, time to press the green button!

@tobrun
tobrun merged commit d1c8dd5 into master Aug 18, 2016
@tobrun

tobrun commented Aug 18, 2016

Copy link
Copy Markdown
Member Author

cc @mapbox/android

@zugaldia

Copy link
Copy Markdown
Member

CI has approved

Of course CI has approved, CI should be very happy about this PR! :)

@zugaldia
zugaldia deleted the tobrun-device-lab branch August 18, 2016 15:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Android Mapbox Maps SDK for Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants