Convert all projects to use Mage#9842
Conversation
magefile.go
Outdated
There was a problem hiding this comment.
exported method Test.Integ should have comment or be unexported
magefile.go
Outdated
There was a problem hiding this comment.
exported method Test.Unit should have comment or be unexported
magefile.go
Outdated
There was a problem hiding this comment.
exported method Test.All should have comment or be unexported
magefile.go
Outdated
There was a problem hiding this comment.
exported type Test should have comment or be unexported
magefile.go
Outdated
There was a problem hiding this comment.
exported type Package should have comment or be unexported
magefile.go
Outdated
There was a problem hiding this comment.
exported method Check.Targets should have comment or be unexported
magefile.go
Outdated
There was a problem hiding this comment.
exported method Check.Vet should have comment or be unexported
magefile.go
Outdated
There was a problem hiding this comment.
comment on exported method Check.All should be of the form "All ..."
magefile.go
Outdated
There was a problem hiding this comment.
exported type Check should have comment or be unexported
magefile.go
Outdated
There was a problem hiding this comment.
exported function Clean should have comment or be unexported
Convert all projects to using Mage https://magefile.org for building. Generate the travis config based on what the root magefile specifies. Remove some unused scripts and files. Update jenkins scripts to use mage for testing. Add a mage docs target that generates docs and opens the browser when PREVIEW is set.
8e72c60 to
c3a6acb
Compare
| } | ||
|
|
||
| // BuildGoDaemon builds the go-daemon binary (use crossBuildGoDaemon). | ||
| func BuildGoDaemon() error { |
There was a problem hiding this comment.
func name will be used as build.BuildGoDaemon by other packages, and that stutters; consider calling this GoDaemon
| // TODO: Add generators. | ||
| } | ||
|
|
||
| Aliases = map[string]interface{}{ |
There was a problem hiding this comment.
exported var Aliases should have comment or be unexported
|
|
||
| WHERE mage | ||
| IF %ERRORLEVEL% NEQ 0 go install github.com/ph/functionbeat/vendor/github.com/magefile/mage | ||
| IF %ERRORLEVEL% NEQ 0 go install github.com/elastic/beats/vendor/github.com/magefile/mage |
ruflin
left a comment
There was a problem hiding this comment.
This change is great and I can't wait to get all this in. As usual to I will ask if we could split this up into multiple smaller PR's? I think there are quite a few changes in there that could happen separately to get it in quickly and make it more reviewable.
I hope most magefile commands could already be introduce by calling mage from the make commands, for example for the docs and this could happen in separate PR's?
| - name: check | ||
| - name: test | ||
| - name: crosscompile | ||
| if: type != pull_request |
There was a problem hiding this comment.
What is the reason you do not want to have this on each PR?
| @@ -1,3 +1,4 @@ | |||
| --- | |||
There was a problem hiding this comment.
Could all the changes to k8s go into a separate PR?
| @@ -0,0 +1,146 @@ | |||
| # DO NOT EDIT - AUTO-GENERATED | |||
There was a problem hiding this comment.
Very nice. I hope we can also use this later on to generate the Jenkins Pipeline file or that the Pipeline file actually contains all this logic.
There was a problem hiding this comment.
Could this change also happen without mage?
| @@ -0,0 +1,35 @@ | |||
| // Licensed to Elasticsearch B.V. under one or more contributor | |||
There was a problem hiding this comment.
Separate PR for changes in heartbeat?
|
Hi @andrewkroh, this PR seems to be stalled and quite out of date. Can we close this one? |
Convert all projects to use Mage https://magefile.org for building.
mage docstarget that generates docs and opens the browser when PREVIEW is set.TODO:
mage.BeatProjectType.