summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5f6030a..3b699fc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,6 +26,7 @@ simpletest:
- bullseye
- buster
- stretch
+ - jessie
script:
- apt-get update
- apt-get dist-upgrade --yes
@@ -35,10 +36,11 @@ simpletest:
- timeout 120s ./debvm-run -s 2222 &
- |
timeout=5
+ sshopt="-o StrictHostKeyChecking=no $(if test "$RELEASE" = jessie; then echo -o PubkeyAcceptedKeyTypes=+ssh-rsa; fi)"
ts=$(sleepenh 0 || [ $? -eq 1 ])
for i in $(seq 10); do
rv=0
- ssh -o StrictHostKeyChecking=no -o ConnectTimeout="$timeout" -i ~/.ssh/id -p 2222 root@localhost echo success || rv=$?
+ ssh $sshopt -o ConnectTimeout="$timeout" -i ~/.ssh/id -p 2222 root@localhost echo success || rv=$?
test $rv -eq 0 && break
ts=$(sleepenh "$ts" "$timeout" || [ $? -eq 1 ]);
if test $i -eq 10; then
@@ -46,4 +48,4 @@ simpletest:
exit 1
fi
done
- - ssh -o StrictHostKeyChecking=no -i ~/.ssh/id -p 2222 root@localhost poweroff
+ - ssh $sshopt -i ~/.ssh/id -p 2222 root@localhost poweroff