aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/docker/docker-compose.yml2
-rwxr-xr-xtest/linux-home/test.sh6
2 files changed, 7 insertions, 1 deletions
diff --git a/test/docker/docker-compose.yml b/test/docker/docker-compose.yml
index 552fadb..0689ad3 100644
--- a/test/docker/docker-compose.yml
+++ b/test/docker/docker-compose.yml
@@ -6,3 +6,5 @@ services:
dockerfile: test/docker/Dockerfile
args:
DISTRO: "${DISTRO:-xenial}"
+ environment:
+ CI: y
diff --git a/test/linux-home/test.sh b/test/linux-home/test.sh
index f4b1028..edb2d5b 100755
--- a/test/linux-home/test.sh
+++ b/test/linux-home/test.sh
@@ -83,8 +83,12 @@ show_env() {
}
main() {
- show_env
+ if [ -z "${CI:+x}" ]; then
+ echo "$script_name: please don't run it outside of CI runs" >&2
+ exit 1
+ fi
+ show_env
test_my_dotfiles_work
}