nRF52 Continuous Integration example
What's in this sample
- We used an mBed nRF52 deboucer project to demonstrate how to test a button with a debouncer. The code turns on an LED every time the button is pressed.
- We then created a Docker container with the toolchain installed.
- We create a Jumper test script that presses the button multiple times, but thanks to the debouncer it should only count as one.
- Next, we configured CircleCI and TravisCI to build and run our testsour project every time we push new code to GitHub.
For full details and walkthrough, head to the following link.
How to run the build server locally
Docker - (if you’re looking to implement a continuous integration process, Docker is one of the building blocks you’ll need).
Run these commands
docker pull jumperio/vlab-gcc-arm git clone https://github.com/Jumperr-labs/nrf52-continuous-integration-example.git cd nrf52-continuous-integration-example docker run -v $PWD:/my_files_in_docker --entrypoint /usr/bin/make jumperio/vlab-gcc-arm -C my_files_in_docker docker run -v $PWD:/my_files_in_docker -w /my_files_in_docker --entrypoint python jumperio/vlab-gcc-arm test.py
The following post demonstrates how to use CircleCI, TravisCI and Docker to create a continuous integration process with test automation. See this link for more details.
Check out this test automation and continuous integration for embedded software blog to learn more.
To Start using the Jumper Virtual Lab, click here for more details.