Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Pipeline models from official v1.0 Pipeline schema #1

Merged
merged 2 commits into from
Nov 9, 2020

Conversation

shiroyasha
Copy link
Contributor

In this PR:

  • I'm taking the v1.0 YAML schema, and converting it to pkg/pipelines/models.go.
  • The generated models are by default added to the package main, I'm transforming this with sed to package pipelines.
  • Introducing a pipelines.LoadFromYAML(<path>) method.

To test out the loading mechanism, you can run:

spc evaluate change-in --input test/fixtures/hello.yml

If everything runs fine, the output will print the loaded pipeline structure.

@shiroyasha shiroyasha merged commit 93d958b into master Nov 9, 2020
@shiroyasha shiroyasha deleted the pipeline-models branch November 9, 2020 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant