leo/.circleci/leo-clean.sh
2022-08-05 11:30:53 -07:00

29 lines
432 B
Bash
Executable File

# Create a new Leo program named `foo`.
$LEO new foo
ls -la
cd foo && ls -la
# Run `leo build`.
$LEO build
# Assert that the 'build' folder exists.
if [ "$(ls -A build)" ]; then
echo "build is not empty"
else
echo "build is empty"
exit 1
fi
# Run `leo clean`
$LEO clean
# Assert that the 'build' folder is empty.
if [ "$(ls -A build)" ]; then
echo "build is not empty"
exit 1
else
echo "build is empty"
exit 0
fi