mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 05:45:06 +03:00
committed by
Kubernetes Prow Robot
parent
2f49b6caa8
commit
f142e671b3
@@ -1,24 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Generates MD formatted CI matrix from the .travis.yml
|
||||
a=$(perl -ne '/^\s{6}(CLOUD_IMAGE|KUBE_NETWORK_PLUGIN|CLOUD_REGION|CLUSTER_MODE)=(\S+)$/ && print "$2\n"' .travis.yml.bak)
|
||||
echo Travis-CI
|
||||
printf "|%25s|%25s|%25s|%25s|\n" "Network plugin" "OS type" "GCE region" "Nodes layout"
|
||||
echo "|-------------------------|-------------------------|-------------------------|-------------------------|"
|
||||
c=0
|
||||
for i in `echo $a`; do
|
||||
printf "|%25s" $i
|
||||
[ $(($c % 4)) -eq 3 ] && printf "|\n"
|
||||
c=$(( c + 1))
|
||||
done
|
||||
|
||||
echo
|
||||
a=$(perl -ne '/^#\sstage:\sdeploy-gce-(\S+)$/ && print "$1\n";/^\s{2}(CLOUD_IMAGE|KUBE_NETWORK_PLUGIN|CLOUD_REGION|CLUSTER_MODE):\s(\S+)$/ && print "$2\n"' .gitlab-ci.yml)
|
||||
echo Gitlab-CI
|
||||
printf "|%20s|%20s|%20s|%20s|%20s\n" "Stage" "Network plugin" "OS type" "GCE region" "Nodes layout"
|
||||
echo "|--------------------|--------------------|--------------------|--------------------|--------------------|"
|
||||
c=0
|
||||
for i in `echo $a`; do
|
||||
printf "|%20s" $i
|
||||
[ $(($c % 5)) -eq 4 ] && printf "|\n"
|
||||
c=$(( c + 1))
|
||||
done
|
||||
Reference in New Issue
Block a user