Skip to content

Commit b04097b

Browse files
committed
ci: Fix building disabled containers
* Change the context into the disabled directory. Now you can test containers which are disabled.
1 parent 2f1ef9e commit b04097b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/ci/docker/disabled/aarch64-gnu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ WORKDIR /build
3131
# The `config` config file was a previously generated config file for
3232
# the kernel. This file was generated by running `make defconfig`
3333
# followed by `make menuconfig` and then enabling the IPv6 protocol page.
34-
COPY disabled/aarch64-gnu/config /build/.config
34+
COPY aarch64-gnu/config /build/.config
3535
RUN curl https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.42.tar.xz | \
3636
tar xJf - && \
3737
cd /build/linux-4.4.42 && \

src/ci/docker/disabled/wasm32-exp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1717

1818
# emscripten
1919
COPY scripts/emscripten-wasm.sh /scripts/
20-
COPY disabled/wasm32-exp/node.sh /usr/local/bin/node
20+
COPY wasm32-exp/node.sh /usr/local/bin/node
2121
RUN bash /scripts/emscripten-wasm.sh
2222

2323
# cache

src/ci/docker/run.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ elif [ -f "$docker_dir/disabled/$image/Dockerfile" ]; then
3636
echo Cannot run disabled images on travis!
3737
exit 1
3838
fi
39-
retry docker \
39+
# retry messes with the pipe from tar to docker. Not needed on non-travis
40+
tar --transform 's/^\.\/disabled\//.\//' -C $docker_dir -c . | docker \
4041
build \
4142
--rm \
4243
-t rust-ci \
43-
-f "$docker_dir/disabled/$image/Dockerfile" \
44-
"$docker_dir"
44+
-f "$image/Dockerfile" \
45+
-
4546
else
4647
echo Invalid image: $image
4748
exit 1

0 commit comments

Comments
 (0)