From c16962f891b40c2829e3359bceb13c3a5602e1d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jonas=20H=C3=B6ppner?= <jonas.hoeppner@garz-fricke.com>
Date: Tue, 6 Dec 2022 15:21:24 +0100
Subject: [PATCH] CI: Add test command to show ip settings before build

---
 build-yocto.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/build-yocto.yml b/build-yocto.yml
index f0effd61..070eb054 100644
--- a/build-yocto.yml
+++ b/build-yocto.yml
@@ -1,5 +1,15 @@
 ---
 
+.networkdebug: &networkdebug
+  #
+  - |-
+    set -x
+    ip address show
+    ping  -4 -c 2 www.google.com
+    ping  -6 -c 2 www.google.com
+    ping  -4 -c 1 git.seco.com # does not reply but shows the ip
+    set +x
+
 .collect_srcrevs: &collect_srcrevs
   # write all package AUTOREVS to file
   - |-
@@ -87,6 +97,7 @@
     - !reference [.setup_ssh]
     - !reference [.repo_checkout]
   script:
+    - *networkdebug
     - *save_build_env
     - *build_script
     - *collect_srcrevs
-- 
GitLab