Hello,
I remember reading sometime ago that WPILib recommends using Azure Pipelines to build robot code.
I found this azure-pipelines.yml file in the WPILib GitHub repository. However, it seems it builds for many machines which we might not need.
Does someone have an example for an azure-pipelines.yml, or any other CI solution for FRC? We’d also like the CI to run our unit tests (built with JUnit).
We’ve used Travis CI happily during 2018 off season. It has a fairly easy setup and works almost out of the box. Here is our 2018 github repo, if you want to check: https://github.com/team-7108/robot-2018. Feel free to DM me if you need any help with Travis.
I can’t speak for C++, but it’s really easy to set up a system with Java. You basically just need some way to run the command ./gradlew build and you are set.
We are using GitHub Actions (which is easier to set up for github users), with the following code in the .github/workflows/ci.yml:
Thanks everyone for your answers! We ended up using GitHub Actions with with the file @yu.liu2 provided.
One change we did is remove the section about branches, because we want to the CI to run on all branches, and not just the master branch.
Thanks again!