-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add initial support for appveyor and circleci
- Loading branch information
1 parent
436bb5b
commit 86cc89c
Showing
13 changed files
with
484 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package appveyor | ||
|
||
// Normalizer is the implementation of the normalizer | ||
type Normalizer struct { | ||
version string | ||
name string | ||
slug string | ||
} | ||
|
||
// GetName returns the name of the normalizer | ||
func (n Normalizer) GetName() string { | ||
return n.name | ||
} | ||
|
||
// GetSlug returns the slug of the normalizer | ||
func (n Normalizer) GetSlug() string { | ||
return n.slug | ||
} | ||
|
||
// Check if this package can handle the current environment | ||
func (n Normalizer) Check(env map[string]string) bool { | ||
return env["CI_SERVICE_NAME"] == "appveyor" | ||
} | ||
|
||
// NewNormalizer gets a instance of the normalizer | ||
func NewNormalizer() Normalizer { | ||
entity := Normalizer{ | ||
version: "0.3.0", | ||
name: "AppVeyor", | ||
slug: "appveyor", | ||
} | ||
|
||
return entity | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package appveyor | ||
|
||
import ( | ||
v1 "github.com/cidverse/normalizeci/pkg/ncispec/v1" | ||
) | ||
|
||
func (n Normalizer) Denormalize(spec v1.Spec) (map[string]string, error) { | ||
return make(map[string]string), nil | ||
} |
Oops, something went wrong.