Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/version banner #71

Merged
merged 2 commits into from
Mar 21, 2019
Merged

Feature/version banner #71

merged 2 commits into from
Mar 21, 2019

Conversation

boxofrox
Copy link
Contributor

  • Update gradle build system to generate and deploy a version file.
  • Use git to generate version number from a) tag or b) branch with offset.
  • Print version information when robot is disabled or robot code starts up.
  • Used to verify version of robot code with visual inspection.

Example version file.

FRC Team 1720 - PhyXTGears
Robot: Space Walrus
Season: 2019
Software version: tested/2019-03-05-2-gea0a56f

Ascii artists are welcome to draw a space walrus in the banner.

There was a minor issue running the build on the programming laptop. Our DNS at MadJax was filtered which prevented access to gradle's plugin repository. Once the grgit plugin was downloaded, this issue was resolved permanently on the programming laptop.

If any other laptops may be used to program the robot in a WiFi exclusion zone, then we best build the code once with internet access to pull the grgit dependency down.

Provide a simple means by which to verify our robot is running the
correct code by deploying a version file and printing the contents to
the dashboard console when the robot is disabled.

Also ignore the version file in git.  We don't want builds reporting the
same version across commits.

STATUS: Builds.

- Justin C
An attempt to always execute the versionFile build task and regenerate
the version file, even when nothing else in the project is changed.
This is done to ensure the version file never fails to update when
building agaisnt another revision since the version file doesn't
actually depend on anything else in the project.

STATUS: Builds.

- Justin C
@boxofrox boxofrox merged commit ad25f93 into develop Mar 21, 2019
@PhyXTGears-1720 PhyXTGears-1720 deleted the feature/version-banner branch March 21, 2019 06:58
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.

1 participant