From fff41301bcf80a131fcbb6ee79007a1418ce1c52 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Sat, 2 Nov 2019 18:04:42 +0100 Subject: Add a debug test This test is intended for debugging issues during the GitLab CI building, installing or testing phases. --- .gitlab-ci.yml | 9 +++++++++ dev-bin/ci-debug.sh | 21 +++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 dev-bin/ci-debug.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e09733..87c7a69 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -53,6 +53,15 @@ Rakudo Spectest: script: - make rakudo-spectest +Debug Test: + stage: Test + image: alpine:latest + before_script: + - apk add --no-cache build-base git perl + - export PATH="$CI_PROJECT_DIR/work/install/bin:$CI_PROJECT_DIR/work/install/share/perl6/site/bin:$PATH" + script: + - sh "$CI_PROJECT_DIR/dev-bin/ci-debug.sh" + Community Modules: stage: Test image: alpine:latest diff --git a/dev-bin/ci-debug.sh b/dev-bin/ci-debug.sh new file mode 100644 index 0000000..f7a460a --- /dev/null +++ b/dev-bin/ci-debug.sh @@ -0,0 +1,21 @@ +#! /usr/bin/env sh + +# +# This is an additional script, ran during CI testing. This is intended to +# debug issues that show up only during CI testing. +# + +main() +{ + perl6 -v + perl6 -e 'dd $*KERNEL.signal("SIGHUP"), $*KERNEL.signal("HUP")' + perl6 -e 'dd $*KERNEL.signal(SIGHUP)' + perl6 -e 'dd $*KERNEL.signal("SIGHUP")' + perl6 -e 'dd $*KERNEL.signal(HUP)' + perl6 -e 'dd $*KERNEL.signal("HUP")' + perl6 -e 'dd Signal.enums' + perl6 -e 'dd $*KERNEL.signals' + uname -a +} + +main "$@" -- cgit v1.1