Skip to content

Conversation

benyanke
Copy link
Member

@benyanke benyanke commented May 30, 2018

This PR consists of two primary sections:

  1. Updating makefile to call various git commands to find the repo state, and pass these values in at buildtime
  2. Updating glauth --version to output based on the values passed in.

This results in an automated version string containing a succinct description of the codebase at buildtime. For example, if the git directory is clean (all files committed), then a git commit hash is added. If a tag is on the current build, it's noted as the version number (ie - this is a release build). Similarly, build timestamp is also noted, along with the git branch, if one exists in the build context.

Also contained some fixes and optimizations to the build process and makefiles, since they are closely related.

benyanke and others added 30 commits April 18, 2018 21:41
Adding travis builds
This includes an integration test which runs glauth and compares ldapsearch snapshot output stored in the repo compared to the snapshot output of the glauth.

Additionally, removing old versions of go, and adding windows and linuxar builds (but not tests) to the makefile, and consequently, the travis build.

While the mac, linux-arm, and windows binaries are not able to be run in travis, they are able to be at least compiled.
@benyanke benyanke force-pushed the feature/buildversion branch from 3033b43 to 86ff37e Compare May 30, 2018 04:35
@benyanke
Copy link
Member Author

Closing, see #39, which correctly merges to dev, not master;

@benyanke benyanke closed this May 31, 2018
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