Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the documentation to remove dependency on android studio #818

Merged
merged 7 commits into from
Apr 4, 2022

Conversation

shankari
Copy link
Contributor

@shankari shankari commented Apr 4, 2022

This is an initial fix for e-mission/e-mission-docs#711

  • Additional fix is to automate some of the steps by including them in the setup and activate scripts.
  • Additional fix to add a CI action to check the automated install

This is an initial fix for
e-mission/e-mission-docs#711

Additional fix is to automate some of the steps by including them in the setup
and activate scripts.
- See if gradle is installed (prepartory to removing the manual install)
- ensure that we use java 11 everywhere
This is in a separate scripts because:
- it takes a long time
- it only needs to be run once per computer

Change readme to remove prior manual instructions and indicate that it is
enough to run the prerequisite script

Change activate to set the PATH variables correctly
Every time it changes, and every week to catch regressions
Update the documentation to remove dependency on android studio
* 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
@shankari shankari merged commit 61777e2 into master Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant