package
module
Version:
v0.0.0-...-5b70521
Opens a new window with list of versions in this module.
Published: Jun 7, 2017
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Pipeline
This tool is pipeline framework.
Built-in Plugins
- Github Comment
- Github Pull-Request
- Slack Notification
Usage
cat << EOF > .pipeline.yml
variables:
%BRANCH%: $BRANCH
%BASE%: $BASE
%ISSUE_ID%: $ISSUE_ID
%GITHUB_TOKEN%: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
lines:
parallels:
- name: build branch
commands: |
git checkout -f %BRANCH%
bin/rspec
%BRANCH_PERCENT% = cat coverage/.last_run.json | grep covered_percent | awk '{print $2}'"
- name: build master
commands: |
git checkout -f %BASE%
bin/rspec
%BASE_PERCENT% = cat coverage/.last_run.json | grep covered_percent | awk '{print $2}'"
- name: calculate coverage
commands: |
%PERCENT% = $(./calculate.sh)
%COMMENT% = $(./build_comment.sh)
exit %EXIT_STATUS%
plugins:
- github-comment
- github-pr
- name: notify to slack
plugins:
- slack-notify
EOF
Install
To install, use go get
:
$ go get -d github.com/linyows/pipeline
Contribution
- Fork (https://github.com/linyows/pipeline/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes
- Run
gofmt -s
- Create a new Pull Request
Author
linyows
Documentation
¶
Exit codes are int values that represent an exit code for a particular error.
Name for this package
Version for this package
CLI is structure
NewCLI returns CLI struct
Run invokes the CLI with the given arguments.
type Options struct {
Config string
Version bool
}
Options is structure
type Pipeline struct {
ConfigPath string
Data []byte
Config Config
Lines []*Tasks
}
Pipeline is structure
LoadConfig loads a config file
Run invokes the CLI with the given arguments.
Source Files
¶
Directories
¶
cmd
|
|
|
|
Click to show internal directories.
Click to hide internal directories.