Skip to content

Commit 31b505a

Browse files
committed
asdfadfsasdf
1 parent 3234bab commit 31b505a

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

‎scripts/run_integration_tests.sh‎

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
#!/bin/bash
22
set -e
33

4-
echo "==> Allowing X11 access..."
5-
xhost +local:docker || true
4+
# TODO Rethink the X11 access in the integration tests.
5+
if [[ -z "$CI" ]]; then
6+
echo "==> Allowing X11 access..."
7+
xhost +local:docker || true
8+
fi
69

710
echo "==> Building integration Docker image..."
811
docker build -t arm-cli-integration -f ./tests/integration/Dockerfile .
912

1013
echo "==> Running integration tests..."
11-
docker run --rm -it \
12-
--privileged \
13-
-e DISPLAY=$DISPLAY \
14-
-v /tmp/.X11-unix:/tmp/.X11-unix \
15-
-v /var/run/docker.sock:/var/run/docker.sock \
16-
arm-cli-integration
14+
15+
if [[ -z "$CI" ]]; then
16+
docker run --rm -it \
17+
--privileged \
18+
-e DISPLAY=$DISPLAY \
19+
-v /tmp/.X11-unix:/tmp/.X11-unix \
20+
-v /var/run/docker.sock:/var/run/docker.sock \
21+
arm-cli-integration
22+
else
23+
docker run --rm \
24+
--privileged \
25+
-v /var/run/docker.sock:/var/run/docker.sock \
26+
arm-cli-integration
27+
fi

0 commit comments

Comments
 (0)