Skip to content

Commit

Permalink
scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rsk0315 committed Feb 12, 2024
1 parent 1b19059 commit b1295cc
Showing 1 changed file with 29 additions and 27 deletions.
56 changes: 29 additions & 27 deletions scripts/ci-test.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -74,32 +74,34 @@ cargo_test "$pass_lib" "$fail_lib" "$notest_lib" '--lib --release'
cargo_test "$pass_doc" "$fail_doc" "$notest_doc" '--doc --release'
(( ? == 0 )) || fail=t

echo '## :x: failed (`--lib`)'
cat $fail_lib

echo '---'

echo '## :x: failed (`--doc`)'
cat $fail_doc

echo '---'

echo '## :sparkles: passed (`--lib`)'
cat $pass_lib

echo '---'

echo '## :sparkles: passed (`--doc`)'
cat $pass_doc

echo '---'

echo '## :smiling_face_with_tear: not tested (`--lib`)'
cat $notest_lib

echo '---'

echo '## :smiling_face_with_tear: not tested (`--doc`)'
cat $notest_doc
if [[ -s $fail_lib ]]; then
echo '## :x: failed (`--lib`)'
cat $fail_lib
fi

if [[ -s $fail_doc ]]; then
echo '## :x: failed (`--doc`)'
cat $fail_doc
fi

if [[ -s $pass_lib ]]; then
echo '## :sparkles: passed (`--lib`)'
cat $pass_lib
fi

if [[ -s $pass_doc ]]; then
echo '## :sparkles: passed (`--doc`)'
cat $pass_doc
fi

if [[ -s $notest_lib ]]; then
echo '## :smiling_face_with_tear: not tested (`--lib`)'
cat $notest_lib
fi

if [[ -s $notest_doc ]]; then
echo '## :smiling_face_with_tear: not tested (`--doc`)'
cat $notest_doc
fi

[[ "$failed" != t ]]

0 comments on commit b1295cc

Please sign in to comment.