mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-23 10:12:21 +03:00
patch leo-clean ci
This commit is contained in:
parent
8f9c7efbed
commit
7ffbee2952
@ -1,38 +1,23 @@
|
||||
# Create a new Leo program named `foo` and run `leo build`.
|
||||
|
||||
# Create a new Leo program named `foo`.
|
||||
$LEO new foo
|
||||
ls -la
|
||||
cd foo && ls -la
|
||||
|
||||
# Run `leo build`.
|
||||
$LEO build
|
||||
|
||||
# Assert that the 'outputs' folder is not empty
|
||||
|
||||
cd outputs || exit 1
|
||||
if [ "$(ls -A $DIR)" ]; then
|
||||
echo "$DIR is not empty"
|
||||
# Assert that the 'build' folder exists.
|
||||
if [ "$(ls -A build)" ]; then
|
||||
echo "build is not empty"
|
||||
else
|
||||
echo "$DIR is empty"
|
||||
echo "build is empty"
|
||||
exit 1
|
||||
fi
|
||||
cd ..
|
||||
|
||||
# leo clean
|
||||
|
||||
# Run `leo clean`
|
||||
$LEO clean
|
||||
cd outputs && ls -la
|
||||
cd ..
|
||||
|
||||
# Assert that the 'outputs' folder is empty
|
||||
|
||||
if [ "$(ls -A outputs)" ]; then
|
||||
echo "outputs is not empty"
|
||||
exit 1
|
||||
else
|
||||
echo "outputs is empty"
|
||||
fi
|
||||
|
||||
# Assert that the 'build' folder is empty
|
||||
|
||||
# Assert that the 'build' folder is empty.
|
||||
if [ "$(ls -A build)" ]; then
|
||||
echo "build is not empty"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user