Skip to content

Instantly share code, notes, and snippets.

@AndrewO
Created February 12, 2020 22:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewO/a20ef740c6b141cd90e4ac20f4787005 to your computer and use it in GitHub Desktop.
Save AndrewO/a20ef740c6b141cd90e4ac20f4787005 to your computer and use it in GitHub Desktop.
Scripts to Rule Them All
+----------------------------------------+
|script/cibuild |
| build and test on CI server |
| |
| * calls script/test |
| * sets environment variables for CI |
| |
+----------------------------------------+
|
|
|
+-------------------v--------------------+ +---------------------------+ +----------------------------------------+
|script/test | |script/server | |script/console |
| run the test suite | | start the application | | open a console |
| | | | | |
| * If in test mode, calls script/setup | | * calls script/update | | * Should accept a mode parameter |
| * Otherwise, calls script/update | | | | * May call script/update |
| | | | | |
+----------------------------------------+ +---------------------------+ +----------------------------------------+
| | | |
| - or - +------------------------------------+ | |
| | | |
+---v------------------------------------+ +---v-----v---------------v--------------+
|script/setup | |script/update |
| sets up project to initial state | | update the project after a fresh pull |
| | | |
| * after clone | | * calls script/bootstrap |
| * project reset | | * run database migrations |
| * calls script/bootstrap | | |
| * setup DBs | | |
+----------------------------------------+ +----------------------------------------+
| |
| |
| |
| +----------------------------------+ |
| |script/bootstrap | |
| | fulfill project dependencies | |
| | | |
+-----------> * nvm, rbenv <--------+
| * Homebrew |
| * npm install, bundler install |
| * git submodules |
| |
+----------------------------------+
@AndrewO
Copy link
Author

AndrewO commented Feb 12, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment