crystal-lang / distribution-scripts

40 stars 24 forks source link

Refactor test-install to only check for single project #109

Closed straight-shoota closed 3 years ago

straight-shoota commented 3 years ago

The test-install helper script did a full check on base project plus nightly and unstable channels (the latter is unused currently).

This only works for the main project (devel:languages:crystal) but not when testing branches (like home:straight-shoota:branches:devel:languages:crystal) because the respective projects for nightly and unstable channels are missing.

This patch simplifies the test-install script to only run on a single channel. But CLI arguments are forwarded to the installer. Instead of a single run of ./support/test-install.sh, you now have to run it several times with different arguments tp get the same result:

./support/test-install.sh 
./support/test-install.sh --channel=nightly
./support/test-install.sh --channel=unstable # if used

Usually you only need to test a specific channel/project anyways, though.