Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get the installation checks to actually work (#817)
* Comment out everything else and just echo the initial environment variables * Run the test CI for all pushes and PRs So that at least it shows up * Change the automated install to be identical to the CI workflow * Fix the file ending * Now introduce the actual changes we want to test * Fix the list_installed syntax * Enable all the other steps as well * actually run the install script Not sure why it is hanging through * Add some logging statements to check when the install is complete + ensure that this only runs when the prerequisite script is changed * Ensure that we explicitly exit from the script Since we are running it with `yes Y | ...` and it does not appear to exit automatically * Simplify the install script so we can see why it doesn't exit properly * Remove all prompts and make sure that it works * Remove the pipe to confirm that this the problem * Restore the prompts We will try different options to pass in the prompt since the `yes` pipe doesn't seem to work https://www.baeldung.com/linux/bash-interactive-prompts * Reintroduce the actual install now that the printf workaround seems to work * Fix install check and diff check - Diff check is expected to fail - Install check should be the last item so that the workflow will fail correctly * Add -x so we print lines before executing them Which makes it easier to find errors in these giant scripts * Fix syntax of single line command by adding appropriate semicolons ``` $ if [ ! -f $ANDROID_SDK_ROOT/emulator ]; then echo "not found" fi > -bash: syntax error: unexpected end of file $ if [ ! -f $ANDROID_SDK_ROOT/emulator ]; then echo "not found"; fi not found ``` * Fix the checks to look for directories and not files * Split the checks into two so we detect if either check fails * Restore the default CI to only run on the master branch Reverts "Run the test CI for all pushes and PRs" which will not be a separate commit once we squash and merge
- Loading branch information