Created
February 12, 2020 22:31
-
-
Save AndrewO/a20ef740c6b141cd90e4ac20f4787005 to your computer and use it in GitHub Desktop.
Scripts to Rule Them All
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+----------------------------------------+ | |
|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 | | |
| | | |
+----------------------------------+ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See: github/scripts-to-rule-them-all