File: examples

package info (click to toggle)
ruby-flipper 0.26.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,288 kB
  • sloc: ruby: 16,377; sh: 61; javascript: 24; makefile: 14
file content (19 lines) | stat: -rwxr-xr-x 477 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env sh

# Exit if any example fails
set -e

# Run all examples individually
for example in examples/**/*.rb; do
  # Skip examples that have setup in name
  echo $example | grep -q "setup" && continue;
  # Skip examples that have cloud in name
  echo $example | grep -q "cloud" && continue;

  # Skip examples with a loop for now
  if ! grep -q "loop do" "$example"; then
    echo "\n\n>>> START: $example"
    ruby $example
    echo ">>> FINISH: $example"
  fi
done