-
Notifications
You must be signed in to change notification settings - Fork 2
Building & Deployment
This project runs on Gradle, so most of the work of installing dependancies, and configuring builds is automatically handled. The first time the code is built, Gradle will automatically download all the tools you need.
There are two ways to build the robot project.
- Pressing
CTRL+SHIFT+P
in VSCode, searching forWPILib: Build robot code
, and running the task - Opening the project in a terminal, and running
.\gradlew.bat build
(Windows) or./gradlew build
(Linux)
Every time code is pushed to GitHub, or a pull request is opened, our CI Pipeline will automatically build a copy of the code on GitHub's servers, and report back with a status. This can be checked with the badge at the top of the README file, or by looking for an icon beside each commit. Checkmark is a success, Yellow circle is "Build in progress", and a red X is "failure".
All code deployment to the robot is done over the robot's internal network. In the shop, you can either connect to the robot's wifi access point, or connect with an ethernet cable to the grey networking switch mounted inside the robot.
Once connected, robot code deployment should be done through the VSCode task: WPILib: Deploy robot code
. It will handle almost everything for you.