|
67 | 67 | show = flag.Bool("show", false, "Show which package is being tested")
|
68 | 68 | customJobID = flag.String("jobid", "", "Custom set job token")
|
69 | 69 | jobNumber = flag.String("jobnumber", "", "Custom set job number")
|
| 70 | + flagName = flag.String("flagname", os.Getenv("COVERALLS_FLAG_NAME"), "Job flag name, e.g. \"Unit\", \"Functional\", or \"Integration\". Will be shown in the Coveralls UI.") |
70 | 71 |
|
71 | 72 | parallelFinish = flag.Bool("parallel-finish", false, "finish parallel test")
|
72 | 73 | )
|
@@ -99,6 +100,7 @@ type Job struct {
|
99 | 100 | ServiceJobNumber string `json:"service_job_number,omitempty"`
|
100 | 101 | ServicePullRequest string `json:"service_pull_request,omitempty"`
|
101 | 102 | ServiceName string `json:"service_name"`
|
| 103 | + FlagName string `json:"flag_name,omitempty"` |
102 | 104 | SourceFiles []*SourceFile `json:"source_files"`
|
103 | 105 | Parallel *bool `json:"parallel,omitempty"`
|
104 | 106 | Git *Git `json:"git,omitempty"`
|
@@ -398,6 +400,7 @@ func process() error {
|
398 | 400 | Git: collectGitInfo(head),
|
399 | 401 | SourceFiles: sourceFiles,
|
400 | 402 | ServiceName: *service,
|
| 403 | + FlagName: *flagName, |
401 | 404 | }
|
402 | 405 |
|
403 | 406 | // Only include a job ID if it's known, otherwise, Coveralls looks
|
|
0 commit comments