mirror of
https://github.com/roc-lang/roc.git
synced 2024-08-18 07:10:27 +03:00
earthly conf file, return correct exit code
This commit is contained in:
parent
0b3b02b498
commit
76cc393520
2
ci/earthly-conf.yml
Normal file
2
ci/earthly-conf.yml
Normal file
@ -0,0 +1,2 @@
|
||||
global:
|
||||
cache_size_mb: 25000
|
@ -3,7 +3,8 @@
|
||||
LOG_FILE="earthly_log.txt"
|
||||
touch $LOG_FILE
|
||||
|
||||
script -efq $LOG_FILE -c "earthly --buildkit-cache-size-mb 25000 +test-all"
|
||||
script -efq $LOG_FILE -c "earthly --config ci/earthly-conf.yml +test-all"
|
||||
EXIT_CODE=$?
|
||||
|
||||
if grep -q "failed to mount" "$LOG_FILE"; then
|
||||
echo ""
|
||||
@ -13,7 +14,7 @@ if grep -q "failed to mount" "$LOG_FILE"; then
|
||||
echo "------<<<<<<!!!!!!>>>>>>------"
|
||||
echo ""
|
||||
echo ""
|
||||
earthly --no-cache --buildkit-cache-size-mb 25000 +test-all
|
||||
earthly --config ci/earthly-conf.yml --no-cache +test-all
|
||||
else
|
||||
return 1
|
||||
exit $EXIT_CODE
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user