Skip to content
New issue

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

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

Already on GitHub? # to your account

Updated Guide.RunningOnCI to include Bitrise instructions #264

Merged
merged 2 commits into from
Sep 7, 2017
Merged

Updated Guide.RunningOnCI to include Bitrise instructions #264

merged 2 commits into from
Sep 7, 2017

Conversation

Monte9
Copy link
Contributor

@Monte9 Monte9 commented Sep 7, 2017

I use Detox for testing our React Native app and it's been great so far. When it was time to put it on CI, I struggled a little bit to get it working on Bitrise (as we have been using Bitrise for running unit tests so far).

Hence after spending hours trying to getting Detox to work on Bitrise, I finally figure it out and so I thought I should share the solution so others can benefit from it.

I have update the docs to show how to setup Detox on Bitrise. Hope this helps.

Let me know if I need to make any changes. Thanks.

inputs:
- content: |-
#!/bin/bash
npm run start &
Copy link

Choose a reason for hiding this comment

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

Why run the packager if you're using the release configuration?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I used to run the debug config earlier but then forgot to remove it once I switched to release builds.

I'll remove this.

*Build succeeded*: $BITRISE_GIT_MESSAGE
*Branch*: $BITRISE_GIT_BRANCH

Fuck it! Ship it!
Copy link

Choose a reason for hiding this comment

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

🙊

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🙈

Copy link
Contributor

@DanielMSchmidt DanielMSchmidt left a comment

Choose a reason for hiding this comment

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

Hey @Monte9
Thank you so much for your help, I really like the guide in general. I got a few small problems for which I added some comments 👍


Bitrise is a popular CI service for automating React Native apps. If you are looking to get started with Bitrise, check out [this](http://blog.bitrise.io/2017/07/25/how-to-set-up-a-react-native-app-on-bitrise.html) guide.

You can run Detox on Bitrise by adding a `tests` workflow. Here's what the Bitrise **.yml** file looks like for doing so:
Copy link
Contributor

Choose a reason for hiding this comment

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

I would like to remove the tests here, the name doesn't matter and it might lead to confusion

Copy link
Contributor Author

Choose a reason for hiding this comment

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

true. I'll remove tests and add a more general explanation instead.

- content: |-
#!/bin/bash
detox test --configuration ios.sim.release
- is_debug: 'yes'
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the debug option really be set here?

Copy link
Member

Choose a reason for hiding this comment

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

What does is_debug mean ?

Copy link
Contributor Author

@Monte9 Monte9 Sep 7, 2017

Choose a reason for hiding this comment

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

not really @DanielMSchmidt
@rotemmiz is_debug basically allows the step to print debug infos about the working dir, tmp file path, exit code, etc

I had that in there when I was trying to debug it and get it to work. I can disable it now.

- _tests_setup
- _detox_tests
steps:
- slack@2.6.2:
Copy link
Contributor

Choose a reason for hiding this comment

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

The slack integration is optional, I would like to see it removed and maybe add a link to the Adding webhooks page instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Def optional. Agreed. I can remove it and make it so it's just bare bones detox config.

@Monte9
Copy link
Contributor Author

Monte9 commented Sep 7, 2017

@DanielMSchmidt I have addressed the comments. Please take another look at it.

Copy link
Contributor

@DanielMSchmidt DanielMSchmidt left a comment

Choose a reason for hiding this comment

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

Looks great, @rotemmiz are you happy too?

@rotemmiz rotemmiz merged commit 24cd288 into wix:master Sep 7, 2017
@rotemmiz
Copy link
Member

rotemmiz commented Sep 7, 2017

Thanks a lot for that!

@wix wix locked and limited conversation to collaborators Jul 23, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants