Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions _test/ensure-stubs-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ for dir in $repo/exercises/*/; do
# 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

# In Travis CI, we may have already compiled using the example solution.
# Touch the src/lib.rs file so that we surely recompile using the stub.
touch $dir/src/lib.rs

if [ -f $allowed_file ]; then
echo "$exercise's stub is allowed to not compile"
elif ! (cd $dir && cargo test --quiet --no-run); then
Expand Down