leo/.circleci/leo-clean.sh

44 lines
616 B
Bash
Raw Normal View History

2021-02-25 08:45:06 +03:00
# leo new hello-world
$LEO new hello-world
ls -la
cd hello-world && ls -la
2022-07-19 04:28:23 +03:00
$LEO build
2021-02-25 08:45:06 +03:00
# Assert that the 'outputs' folder is not empty
cd outputs || exit 1
if [ "$(ls -A $DIR)" ]; then
echo "$DIR is not empty"
else
echo "$DIR is empty"
exit 1
fi
cd ..
# leo clean
$LEO clean
cd outputs && ls -la
2021-02-25 08:52:51 +03:00
cd ..
2021-02-25 08:45:06 +03:00
# Assert that the 'outputs' folder is empty
2022-07-19 04:28:23 +03:00
if [ "$(ls -A outputs)" ]; then
echo "outputs is not empty"
2021-02-25 08:45:06 +03:00
exit 1
else
2022-07-19 04:28:23 +03:00
echo "outputs is empty"
fi
# Assert that the 'build' folder is empty
if [ "$(ls -A build)" ]; then
echo "build is not empty"
exit 1
else
echo "build is empty"
2021-02-25 08:45:06 +03:00
exit 0
fi
2022-07-19 04:28:23 +03:00