Sha256: d6f8409254f43d5ec91a96bae2656a8d5070d3a65afa01e4d771762cdbd6c9d1
Contents?: true
Size: 782 Bytes
Versions: 73
Compression:
Stored size: 782 Bytes
Contents
#!/bin/sh repo=$(cd "$(dirname "$0")/.." && pwd) broken="" for dir in $repo/exercises/*/; do exercise=$(basename "$dir") # If src/lib.rs contains any non-comment line that contains any non-spaces, # it probably contains function signatures, and these should compile. if grep -v '^//' $dir/src/lib.rs | grep '\S' > /dev/null; then allowed_file=$dir/.meta/ALLOWED_TO_NOT_COMPILE if [ -f $allowed_file ]; then echo "$exercise's stub is allowed to not compile" elif ! (cd $dir && cargo test --quiet --no-run); then echo "$exercise's stub does not compile; please make it compile or remove all non-commented lines" broken="$broken\n$exercise" fi fi done if [ -n "$broken" ]; then echo "Exercises that don't compile:$broken" exit 1 fi
Version data entries
73 entries across 73 versions & 1 rubygems