Skip to content

Travis CI integration example#42

Open
labeneator wants to merge 6 commits intoAmboVent-1690-108:masterfrom
labeneator:master
Open

Travis CI integration example#42
labeneator wants to merge 6 commits intoAmboVent-1690-108:masterfrom
labeneator:master

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