You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
494 B

  1. #!/bin/sh
  2. # Generates MD formatted CI matrix from the .travis.yml
  3. a=$(perl -ne '/^\s{6}(CLOUD_IMAGE|KUBE_NETWORK_PLUGIN|CLOUD_REGION|CLUSTER_MODE)=(\S+)$/ && print "$2\n"' .travis.yml)
  4. printf "|%25s|%25s|%25s|%25s|\n" "Network plugin" "OS type" "GCE region" "Nodes layout"
  5. echo "|-------------------------|-------------------------|-------------------------|-------------------------|"
  6. c=0
  7. for i in `echo $a`; do
  8. printf "|%25s" $i
  9. [ $(($c % 4)) -eq 3 ] && printf "|\n"
  10. c=$(( c + 1))
  11. done