Skip to content

Commit 85af013

Browse files
committed
Dependency update: add CI tests
1 parent ce86dda commit 85af013

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

ci/run_tests.sh

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,26 @@ popd
203203

204204
# test dependency priority
205205
pushd dependency_priority
206-
"$fpm" run
206+
207+
# first build should run OK
208+
EXIT_CODE=0
209+
"$fpm" run || EXIT_CODE=$?
210+
test $EXIT_CODE -eq 0
211+
212+
# Build again, should update nothing
213+
"$fpm" build --verbose > build.log
214+
if [[ -n "$(grep Update build.log)" ]]; then
215+
echo "Some dependencies were updated that should not be";
216+
exit 1;
217+
fi
218+
219+
# Request update, should update oth
220+
"$fpm" update --clean --verbose > update.log
221+
if [[ -z "$(grep Update update.log)" ]]; then
222+
echo "No updated dependencies after 'fpm update --clean'";
223+
exit 1;
224+
fi
225+
207226
popd
208227

209228
# Cleanup

0 commit comments

Comments
 (0)