Skip to content

Commit

Permalink
rew mage target: release
Browse files Browse the repository at this point in the history
  • Loading branch information
julian7 committed Nov 17, 2019
1 parent 31f82c9 commit 188bef4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

No changes so far.
Added:

* New mage target: release (runs goshipdone, while enabling publish modules)

Fixed:

* Updated to goshipdone v0.3.0

## [v0.1.2] - Nov 17, 2019

Expand Down Expand Up @@ -36,5 +42,6 @@ Added:
* http check

[Unreleased]: https://github.com/julian7/sensu-base-checks
[v0.1.0]: https://github.com/julian7/sensu-base-checks/releases/tag/v0.1.0
[v0.1.2]: https://github.com/julian7/sensu-base-checks/releases/tag/v0.1.2
[v0.1.1]: https://github.com/julian7/sensu-base-checks/releases/tag/v0.1.1
[v0.1.0]: https://github.com/julian7/sensu-base-checks/releases/tag/v0.1.0
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/etdub/goparsetime v0.0.0-20160315173935-ea17b0ac3318 // indirect
github.com/go-ole/go-ole v1.2.4 // indirect
github.com/hako/durafmt v0.0.0-20191009132224-3f39dc1ed9f4
github.com/julian7/goshipdone v0.2.0
github.com/julian7/goshipdone v0.3.0
github.com/julian7/sensulib v0.1.3
github.com/karrick/tparse v2.4.2+incompatible
github.com/magefile/mage v1.9.0
Expand Down
5 changes: 4 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d h1:G0m3OIz70MZUWq3EgK3CesDbo8upS2Vm9/P3FtgI+Jk=
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ=
github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
Expand All @@ -25,8 +27,9 @@ github.com/hako/durafmt v0.0.0-20191009132224-3f39dc1ed9f4/go.mod h1:5Scbynm8dF1
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/julian7/goshipdone v0.2.0 h1:WmTJ/XmYNgA5bfDTZaZsMxYzSYo+x44eXAGEVjXKLxw=
github.com/julian7/goshipdone v0.2.0/go.mod h1:QEYrERF9EZu2JJ33tHVwZyfiE1Q2f/zmt1MRGdoSmAs=
github.com/julian7/goshipdone v0.3.0 h1:pvhhEc5A9joVwLg4/ZphyE9RPnsvih9IacjRb3B5bg0=
github.com/julian7/goshipdone v0.3.0/go.mod h1:aaXTbZKzhSSWBUzPzfpIT3KYuSlILJtSg6Ar6kd10PA=
github.com/julian7/sensulib v0.1.3 h1:2QOIxWD9E+n6NJehULAs5YoIJkFeZdqLLmn37/eRwn4=
github.com/julian7/sensulib v0.1.3/go.mod h1:S6pWjJ2/F7eRb8ApQZ7gFj9JSQ9SJbu4RKS96+CJkvQ=
github.com/karrick/tparse v2.4.2+incompatible h1:+cW306qKAzrASC5XieHkgN7/vPaGKIuK62Q7nI7DIRc=
Expand Down
10 changes: 10 additions & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package main

import (
"fmt"
"os"
"os/exec"

"github.com/julian7/goshipdone"
Expand All @@ -28,6 +29,15 @@ func All() error {
return nil
}

// Release builds and releases package
func Release() {
mg.SerialDeps(flagrel, All)
}

func flagrel() {
os.Setenv("SKIP_PUBLISH", "false")
}

// Alltests runs all code checks
func Alltests() {
mg.SerialDeps(Lint, Test, Cover)
Expand Down

0 comments on commit 188bef4

Please sign in to comment.