File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22set -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
710echo " ==> Building integration Docker image..."
811docker build -t arm-cli-integration -f ./tests/integration/Dockerfile .
912
1013echo " ==> 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
You can’t perform that action at this time.
0 commit comments