Skip to content

Commit

Permalink
Check exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
shaedrich committed Jun 5, 2024
1 parent 2ce23c8 commit 4177e64
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .ci-scripts/check-code-samples.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
#set -e
set -u

cd ./code-samples/
Expand All @@ -14,6 +14,11 @@ for file in *.pony; do
percentage=$(((i*100)/files))
echo -e "#$i Test $file … ($i/$files \u2192 $percentage %)"
docker run -v $(pwd):/src/main docker://ghcr.io/ponylang/ponyc:latest
if [ $? -eq 0 ]; then
echo -e "\e[1;32m\u2705 File fulfilled expectations\e[0m"
else
echo -e "\e[1;32m\u2705 File fulfilled expectations\e[0m"
else
done
runnableFiles=$((files-notRunnable))
if [ "${#failedFiles[@]}" != 0 ]; then
Expand Down

0 comments on commit 4177e64

Please sign in to comment.