Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Improvements to Makefile, linting, and circleci.yml #168

Merged
merged 3 commits into from
Oct 30, 2017

Conversation

dnephin
Copy link
Member

@dnephin dnephin commented Oct 17, 2017

Use gometalinter for linting

  • runs more linters
  • does everything in parallel
  • handles exiting with non-zero when a linter fails
  • supports a whitelist with // nolint
  • makes installation easier (install one tool then use --install instead of installing each thing separately)

Improve the cirlceci config

  • store the build artifacts so they can be downloaded
  • label the steps

Makefile improvements

  • put the build artifacts into a dist/ directory
  • run unit tests for all packages, not a single package
  • allow building of a binary without running lint and test every time

Cleanup vendor/

  • vendor.conf included some unused packages, apparently vndr is still broken and doesn't work about these unused packages.

Also fix existing lint errors.

@dnephin dnephin force-pushed the improve-the-build branch 4 times, most recently from a1d31f1 to 89d56cb Compare October 17, 2017 21:26
Use gometalinter for linting
put build artifact in dist/
store artifacts in circleci

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
@dnephin
Copy link
Member Author

dnephin commented Oct 17, 2017

I also notice that this doesn't specify a go version in the circleci config. This should probably test against a specific version of go. I haven't made that change as part of this PR.

Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐮

@justincormack justincormack merged commit 4ed9d49 into moby:master Oct 30, 2017
@dnephin dnephin deleted the improve-the-build branch October 30, 2017 16:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants