2017-03-25 15:51:30 +02:00
|
|
|
default:
|
|
|
|
deps: [hello]
|
|
|
|
|
|
|
|
hello:
|
2017-03-25 16:01:44 +02:00
|
|
|
deps: [set-equal]
|
2017-03-25 15:51:30 +02:00
|
|
|
cmds:
|
|
|
|
- echo {{.FOO}} > foo.txt
|
|
|
|
- echo {{.BAR}} > bar.txt
|
2017-07-15 20:28:59 +02:00
|
|
|
- echo {{.BAZ}} > baz.txt
|
2017-07-20 09:05:37 +02:00
|
|
|
- echo '{{.TMPL_FOO}}' > tmpl_foo.txt
|
|
|
|
- echo '{{.TMPL_BAR}}' > tmpl_bar.txt
|
|
|
|
- echo '{{.TMPL_FOO2}}' > tmpl_foo2.txt
|
|
|
|
- echo '{{.TMPL_BAR2}}' > tmpl_bar2.txt
|
|
|
|
- echo '{{.SHTMPL_FOO}}' > shtmpl_foo.txt
|
|
|
|
- echo '{{.SHTMPL_FOO2}}' > shtmpl_foo2.txt
|
|
|
|
- echo '{{.NESTEDTMPL_FOO}}' > nestedtmpl_foo.txt
|
|
|
|
- echo '{{.NESTEDTMPL_FOO2}}' > nestedtmpl_foo2.txt
|
2017-03-25 15:51:30 +02:00
|
|
|
- echo {{.FOO2}} > foo2.txt
|
|
|
|
- echo {{.BAR2}} > bar2.txt
|
2017-07-15 20:28:59 +02:00
|
|
|
- echo {{.BAZ2}} > baz2.txt
|
2017-07-20 09:05:37 +02:00
|
|
|
- echo '{{.TMPL2_FOO}}' > tmpl2_foo.txt
|
|
|
|
- echo '{{.TMPL2_BAR}}' > tmpl2_bar.txt
|
|
|
|
- echo '{{.TMPL2_FOO2}}' > tmpl2_foo2.txt
|
|
|
|
- echo '{{.TMPL2_BAR2}}' > tmpl2_bar2.txt
|
|
|
|
- echo '{{.SHTMPL2_FOO}}' > shtmpl2_foo.txt
|
|
|
|
- echo '{{.SHTMPL2_FOO2}}' > shtmpl2_foo2.txt
|
|
|
|
- echo '{{.NESTEDTMPL2_FOO2}}' > nestedtmpl2_foo2.txt
|
2017-03-25 16:01:44 +02:00
|
|
|
- echo {{.EQUAL}} > equal.txt
|
2017-07-20 09:05:37 +02:00
|
|
|
- echo {{.OVERRIDE}} > override.txt
|
2017-03-25 15:51:30 +02:00
|
|
|
vars:
|
|
|
|
FOO: foo
|
|
|
|
BAR: $echo bar
|
2017-07-15 20:28:59 +02:00
|
|
|
BAZ:
|
|
|
|
sh: echo baz
|
2017-07-20 09:05:37 +02:00
|
|
|
TMPL_FOO: "{{.FOO}}"
|
|
|
|
TMPL_BAR: "{{.BAR}}"
|
|
|
|
TMPL_FOO2: "{{.FOO2}}"
|
|
|
|
TMPL_BAR2: "{{.BAR2}}"
|
|
|
|
SHTMPL_FOO:
|
|
|
|
sh: "echo '{{.FOO}}'"
|
|
|
|
SHTMPL_FOO2:
|
|
|
|
sh: "echo '{{.FOO2}}'"
|
|
|
|
NESTEDTMPL_FOO: "{{.TMPL_FOO}}"
|
|
|
|
NESTEDTMPL_FOO2: "{{.TMPL2_FOO2}}"
|
|
|
|
OVERRIDE: "bar"
|
2017-03-25 16:01:44 +02:00
|
|
|
|
|
|
|
set-equal:
|
|
|
|
set: EQUAL
|
|
|
|
cmds:
|
|
|
|
- echo foo=bar
|
2017-07-20 09:05:37 +02:00
|
|
|
|
|
|
|
invalid-var-tmpl:
|
|
|
|
vars:
|
|
|
|
CHARS: "abcd"
|
|
|
|
INVALID: "{{range .CHARS}}no end"
|