diff --git a/.gitignore b/.gitignore index c692707f..8caa2e2b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. # -# Generated on 2020-08-11T14:39:25Z by kres ced23da-dirty. +# Generated on 2022-11-28T15:57:44Z by kres 3ac53a8-dirty. _out +_out/example/ diff --git a/.kres.yaml b/.kres.yaml index be5c2470..eb56b320 100644 --- a/.kres.yaml +++ b/.kres.yaml @@ -22,3 +22,8 @@ spec: kind: service.CodeCov spec: targetThreshold: 10 +--- +kind: common.Build +spec: + ignoredPaths: + - "_out/example/" diff --git a/internal/project/common/build.go b/internal/project/common/build.go index 5b7f8480..5e63dc31 100644 --- a/internal/project/common/build.go +++ b/internal/project/common/build.go @@ -19,7 +19,8 @@ type Build struct { meta *meta.Options - ArtifactsPath string `yaml:"artifactsPath"` + ArtifactsPath string `yaml:"artifactsPath"` + IgnoredPaths []string `yaml:"ignoredPaths"` } // NewBuild initializes Build. @@ -66,8 +67,11 @@ func (build *Build) CompileMakefile(output *makefile.Output) error { // CompileGitignore implements gitignore.Compiler. func (build *Build) CompileGitignore(output *gitignore.Output) error { - output. - IgnorePath(build.ArtifactsPath) + output.IgnorePath(build.ArtifactsPath) + + for _, ignoredPath := range build.IgnoredPaths { + output.IgnorePath(ignoredPath) + } return nil }