Documentation ¶
Overview ¶
Package mixins contains magefile targets that perform common tasks that all mixins need to support
Index ¶
- type Magefile
- func (m Magefile) Build()
- func (m Magefile) Clean()
- func (m Magefile) ConfigureAgent()
- func (m Magefile) Install()
- func (m Magefile) Publish()
- func (m Magefile) PublishBinaries()
- func (m Magefile) PublishMixinFeed()
- func (m Magefile) Test()
- func (m Magefile) TestPublish(username string)
- func (m Magefile) TestUnit()
- func (m Magefile) XBuildAll()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Magefile ¶
func NewMagefile ¶
NewMagefile creates a magefile helper for a mixin
func (Magefile) ConfigureAgent ¶
func (m Magefile) ConfigureAgent()
ConfigureAgent sets up a CI worker to use Go and mage.
func (Magefile) PublishBinaries ¶
func (m Magefile) PublishBinaries()
PublishBinaries uploads cross-compiled binaries to a GitHub release Requires PORTER_RELEASE_REPOSITORY to be set to github.com/USERNAME/REPO
func (Magefile) PublishMixinFeed ¶
func (m Magefile) PublishMixinFeed()
Publish a mixin feed Requires PORTER_PACKAGES_REMOTE to be set to git@github.com:USERNAME/REPO.git
func (Magefile) TestPublish ¶
TestPublish uploads release artifacts to a fork of the mixin's repo. If your mixin is official hosted in a repository under your username, you will need to manually override PORTER_RELEASE_REPOSITORY and PORTER_PACKAGES_REMOTE to test out publishing safely.