6. walter のインストール
$ go get github.com/walter-cd/walter
# For Mac OS X
$ brew tap higanworks/homebrew-walter-binary
$ brew install walter
または GitHub Releases からバイナリ取得
https://github.com/walter-cd/walter/releases
7. walter の実行
# pipeline.yml
pipeline:
- name: test
command: echo Hello Walter
$ walter
23:27:52 INFO Pipeline file path: "./pipeline.yml"
... <中略>
23:27:52 INFO running Walter
23:27:52 INFO Starting Walter in local mode
23:27:52 INFO Preparing to run pipeline process...
23:27:52 INFO [command] exec: test
23:27:52 INFO [test][command] exec output: Hello Walter
23:27:52 INFO Finished running pipeline process...
23:27:52 INFO Preparing to run cleanup process...
23:27:52 INFO Finished running cleanup process...
23:27:52 INFO succeded to finish Walter
8. pipeline.yml
pipeline:
- name: Start VM
command: vagrant up --no-provision
- name: Provision VM
command: vagrant provision
- name: Test VM
command: rake serverspec
cleanup:
- name: Destroy VM
command: vagrant destroy --force
22. walter-server のインストールと実行
$ go get github.com/walter-cd/walter-server
$ walter-server -h
Usage of walter:
-db_dir string
The directory of the sqlite3 db file put on. (default "/var/lib/walter")
-host string
The host of the application. (default "0.0.0.0:8080")
$ walter-server
23:30:24 INFO walter-server is listening on 0.0.0.0:8080
23. walter-agent のインストールと実行
$ go get github.com/walter-cd/walter-agent
$ walter-agent -h
Usage of walter-agent:
-base_url string
Base URL of walter-server to access from web browsers
-interval int
Job polling interval by seconds (default 1)
-max_workers int
Maximum number of walter workers (default 5)
-server string
URL of walter-server (default "http://localhost:8080/")
-working_dir string
Working directory (default "/var/lib/walter/workspace")
$ walter-agent
23:36:36 INFO walter-agent started
24.
25. pipeline.yml
pipeline:
- name: test
command: echo Hello Walter
service:
type: github
token: $WALTER_GITHUB_TOKEN
messenger:
type: slack
channel: random
url: $SLACK_WEBHOOK_URL
icon_url: https://example.jp/walter.png
username: Walter
suppress:
- result