aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2019-11-02 18:04:42 +0100
committerPatrick Spek <p.spek@tyil.nl>2019-11-02 18:04:42 +0100
commitfff41301bcf80a131fcbb6ee79007a1418ce1c52 (patch)
tree9b1cbb4499855780d52c0c486491774ebec07d93
parent700b8add62f8eb4188f83152e5001af8611f4178 (diff)
Add a debug test
This test is intended for debugging issues during the GitLab CI building, installing or testing phases.
-rw-r--r--.gitlab-ci.yml9
-rw-r--r--dev-bin/ci-debug.sh21
2 files changed, 30 insertions, 0 deletions
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 "$@"