mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-30 23:33:27 +03:00
12570e4602
* commit leo example tests * improve leo example readme's and ci * commit leo token example script
29 lines
452 B
Bash
Executable File
29 lines
452 B
Bash
Executable File
# Create a new Leo program named `foo`.
|
|
$LEO new foo || exit
|
|
ls -la
|
|
cd foo && ls -la
|
|
|
|
# Run `leo run`.
|
|
$LEO run || exit
|
|
|
|
# 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 || exit
|
|
|
|
# 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
|
|
|