Skip to content

Commit b96db48

Browse files
committed
Fix multi-line test
1 parent 4de63a3 commit b96db48

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.buildkite/pipeline.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ steps:
3434
environment:
3535
- ALPACAS=sometimes
3636

37+
- wait
38+
- label: run, with multi-line command
39+
command: |
40+
echo \
41+
hello \
42+
world
43+
plugins:
44+
${BUILDKITE_REPO}#${BUILDKITE_COMMIT}:
45+
run: alpinewithenv
46+
config: tests/composefiles/docker-compose.v2.1.yml
47+
3748
- wait
3849
- label: prebuild with v2.0
3950
command: /hello

tests/run.bats

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ cmd3"
126126

127127
stub docker-compose \
128128
"-f docker-compose.yml -p buildkite1111 build --pull myservice : echo built myservice" \
129-
"-f docker-compose.yml -p buildkite1111 run --name buildkite1111_myservice_build_1 myservice /bin/sh -e -c 'cmd1\\ncmd2\\ncmd3' : echo ran myservice"
129+
"-f docker-compose.yml -p buildkite1111 up -d --scale myservice=0 : echo ran myservice dependencies" \
130+
"-f docker-compose.yml -p buildkite1111 run --name buildkite1111_myservice_build_1 myservice /bin/sh -e -c 'cmd1\ncmd2\ncmd3' : echo ran myservice"
130131

131132
stub buildkite-agent \
132133
"meta-data get docker-compose-plugin-built-image-tag-myservice : exit 1"

0 commit comments

Comments
 (0)