Skip to content
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

Travis CI integration example #42

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

labeneator
Copy link

A quick example on how to integrate travis build status.

  • Project admin needs to create a travis account and enable this repo.
  • Project admin needs to modify readme.md with the appropriate links to travis.

@labeneator
Copy link
Author

Fixes #25. Should also reference #40

@ElectricRCAircraftGuy
Copy link
Collaborator

@labeneator , this looks pretty useful. Thanks. I'd like to dig into this when I get the chance. Have you done this before or did you just learn how to do it?

@labeneator
Copy link
Author

labeneator commented Apr 20, 2020 via email

@ElectricRCAircraftGuy
Copy link
Collaborator

ElectricRCAircraftGuy commented Apr 20, 2020

@labeneator Nice! Can you post all the links you used to figure it out please? I'll take a closer look at the links and the PR one of these evenings. Also, is there any way to test it before merging it, or must it be merged first to be able to test it?

@labeneator
Copy link
Author

Sorry for the late response.

  1. Started looking up for Continuous integration options for github which led me to adafruit.
  2. I remembered that travis-ci is well integrated with github. I checked their integration options for arduino
  3. I had never used platform.io, however the examples given were intuitive and that, led to this PR.

The next steps would be to have the code integrated with unit-test libraries for arduino.
A quick google leads to these options, that need to be investigated for suitability:

  1. https://maker.pro/arduino/tutorial/using-unit-test-frameworks-with-arduino
  2. https://www.thecoderscorner.com/electronics/microcontrollers/embedded-testing/getting-started-unittesting-arduino/
  3. https://docs.platformio.org/en/latest/plus/unit-testing.html
  4. https://github.com/bxparks/AUnit
  5. https://github.com/mmurdoch/arduinounit

@labeneator
Copy link
Author

Also, is there any way to test it before merging it, or must it be merged first to be able to test it?

I think the best thing to do is merge it to a different branch for testing on your repo. You will require to setup a travis-ci account for ambovent. Once you are happy with the setup, you can merge back to master

@labeneator
Copy link
Author

If you create a travis-ci branch on your repo, I can target this PR @ that branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants