Skip to content

Add Makefile for building/testing/linting project#24

Merged
sendqueery merged 4 commits intodisneystreaming:developfrom
JordanFaust:add-makefile
Jul 14, 2020
Merged

Add Makefile for building/testing/linting project#24
sendqueery merged 4 commits intodisneystreaming:developfrom
JordanFaust:add-makefile

Conversation

@JordanFaust
Copy link
Contributor

Adds a Makefile that provides a build, clean, test, and lint command.
These commands are used for local development while goreleaser is still
used for release the go artifacts/docker container. The goreleaser
pipeline now leverages the make test command for running tests as a pre
hook to the release pipeline

@JordanFaust JordanFaust force-pushed the add-makefile branch 2 times, most recently from 525ae25 to eb6aa9b Compare June 25, 2020 18:41
Adds a Makefile that provides a build, clean, test, and lint command.
These commands are used for local development while goreleaser is still
used for release the go artifacts/docker container. The goreleaser
pipeline now leverages the make test command for running tests as a pre
hook to the release pipeline
jfaust added 3 commits June 25, 2020 14:07
Splits build into an os agnostic build and introduces a docker build
command that rebuilds the binary for linux before building the container
#------------------------------------------------------------------------------

SHELL := /bin/bash
PKG := github.com/disneystreaming/ssm-helpers
Copy link
Contributor

Choose a reason for hiding this comment

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

supernitpick.

Do we want to format/align variables and their values?

ex:

SHELL		:= /bin/bash
PKG		:= github.com/disneystreaming/ssm-helpers
IMAGE		:= docker.pkg.github.com/disneystreaming/ssm-helpers/ssm

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you can get this to align better please let me know. Tabs are absolutely horrible.

Copy link
Collaborator

@sendqueery sendqueery left a comment

Choose a reason for hiding this comment

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

LGTM!

@sendqueery sendqueery merged commit 76a532c into disneystreaming:develop Jul 14, 2020
sendqueery pushed a commit that referenced this pull request Jul 14, 2020
* Add Makefile for building/testing/linting project

* Fix import lints

* Add formatting as part of build command

* Make build os agnostic

Co-authored-by: jfaust <jordan.faust@disneystreaming.com>
sendqueery pushed a commit that referenced this pull request Sep 3, 2020
* Add Makefile for building/testing/linting project

* Fix import lints

* Add formatting as part of build command

* Make build os agnostic

Co-authored-by: jfaust <jordan.faust@disneystreaming.com>
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.

3 participants