{"id":16763807,"url":"https://github.com/gregk27/frc-ci-demo","last_synced_at":"2026-05-16T23:09:50.463Z","repository":{"id":95618008,"uuid":"283830171","full_name":"gregk27/FRC-CI-Demo","owner":"gregk27","description":"Sample continuous integration setup for FIRST Robotics Competition","archived":false,"fork":false,"pushed_at":"2020-08-12T21:47:16.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T23:11:33.289Z","etag":null,"topics":["continuous-integration","frc"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregk27.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-30T16:55:58.000Z","updated_at":"2020-08-17T16:09:07.000Z","dependencies_parsed_at":"2023-04-18T12:33:39.740Z","dependency_job_id":null,"html_url":"https://github.com/gregk27/FRC-CI-Demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregk27%2FFRC-CI-Demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregk27%2FFRC-CI-Demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregk27%2FFRC-CI-Demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregk27%2FFRC-CI-Demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregk27","download_url":"https://codeload.github.com/gregk27/FRC-CI-Demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858056,"owners_count":20359271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["continuous-integration","frc"],"created_at":"2024-10-13T05:23:34.249Z","updated_at":"2026-05-16T23:09:45.424Z","avatar_url":"https://github.com/gregk27.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CI Demo\nThis is a repository with setup that features 3 CI components for an FRC Java robot\n - Build: Verifies result of `gradlew build -x tests`\n - Tests: Unit tests\n - Syntax: Checkstyle check\n\n# Tests\nThis executes JUnit tests located in `src/test/java/frc/robot` in four steps. They are run from lowest level (subsystems interfacing with hardware) to highest level (full robot).\n\nFor mocking FRC hardware, a variety of wrappers are included from https://github.com/gregk27/FRCMocks. These allow for tracking a variety of parameters such as motor controller setpoints, and solenoid values.\n\nTo implement unit tests outside of `src/java/main`, they must be added to the `.classpath` file (hidden by default in vscode). This can be done with the following snippet:\n```XML\n\u003cclasspathentry kind=\"src\" output=\"bin/test\" path=\"src/test/java\"\u003e\n    \u003cattributes\u003e\n        \u003cattribute name=\"gradle_scope\" value=\"test\"/\u003e\n        \u003cattribute name=\"gradle_used_by_scope\" value=\"test\"/\u003e\n        \u003cattribute name=\"test\" value=\"true\"/\u003e\n    \u003c/attributes\u003e\n\u003c/classpathentry\u003e\n```\n\n## Subsystems\nSubsystem tests include all tests under `robot/subystems`. These tests verify that subsystem functions interface properly with mock hardware. Ex. `Intake.deploy()` actually deploys the intake.\n\n## Commands\nCommands tests inlcude all tests under `robot/commands` (excluding `robot/commands/autonomous`). These tests verify that commands have the intended effects on their respective subsystems. Ex: `IntakeCommand` both deploys and starts the intake on button press, then stops/retracts on release.\n\n### Autonomous commands\nAutonomous command tests inlucde all tests under `robot/commands/autonomous`, these are run after commands as most depend on commands.\n\n## Sim\nSim tests are tests at the top level (directly under `robot`). These tests may depend on a combination of subsystems and commands, and are therefore run last.\n\n# Syntax\nSyntax tests are run using [Checkstyle](https://checkstyle.sourceforge.io/), a highly configurable linter. These tests allow for enforcing code standards to increase consistency and legibilty. The configuration in this repository is `/checkstyle.xml`. These tests can be run manually with the command `gradlew checkstyle`, and syntax highlighting can be applied with a [VS Code extension](https://marketplace.visualstudio.com/items?itemName=shengchen.vscode-checkstyle).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregk27%2Ffrc-ci-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregk27%2Ffrc-ci-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregk27%2Ffrc-ci-demo/lists"}