-
Notifications
You must be signed in to change notification settings - Fork 11
/
local.yaml
98 lines (90 loc) · 1.67 KB
/
local.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
tests:
- name: use the default shell, on Unix or Windows
command: |
echo Something.>&2
false
echo Something else.>&2
stderr: |
Something.
Something else.
- name: pipe STDIN to the script
command: |
cat >&2
stdin: |
Something.
stderr: |
Something.
- name: use custom shell flags
command:
shell:
- sh
- -e
script: |
echo 'Something.' >&2
false
echo 'Something else.' >&2
exit-status: 1
stderr: |
Something.
- name: use a custom shell
command:
shell:
- ruby
script: |
puts 'Something.'
$stderr.puts 'Something else.'
stdout: |
Something.
stderr: |
Something else.
- name: pass args to the default shell command
command: |
echo $1 $2 $3
args:
- a
- b
- c
- d
- e
stdout: |
a b c
- name: pass args to a custom shell command
command:
shell:
- ruby
script: |
puts ARGV[0...3]
args:
- a
- b
- c
- d
- e
stdout: |
a
b
c
- name: use a custom shell with an absolute path
command:
shell:
- /bin/sh
script: |
echo 'Something.'
stdout: |
Something.
- name: use a shell that doesn't exist
command:
shell:
- non_existent_application
script: |
echo 'Something.'
stdout: |
Something.
- name: use a shell that isn't executable
command:
shell:
- ./fixtures/non_executable_application
script: |
echo 'Something.'
stdout: |
Something.