- Install DevUp with
brew install devuporpip install devup. - Clone the project with
de clone user/myproject. - Prepare your local development environment
de up. - Test and lint!
de testde lint
Created
July 2, 2017 19:47
-
-
Save pior/5ece99bb4f783fe644afc6bc4c42c20d to your computer and use it in GitHub Desktop.
DevUp - help your contributors to onboard
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
| up: | |
| - pip | |
| - setuptools_develop | |
| - run: flake8 --install-hook git | |
| unless: grep -q flake8 .git/hooks/pre-commit | |
| test: | |
| - run: py.test | |
| - run: run-integration-test.sh | |
| if_env: CI | |
| lint: | |
| - run: flake8 devup |
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
| $ de init | |
| $ de clone devup | |
| $ de clone pior/devup | |
| $ de clone ssh://[email protected]/pior/awstools | |
| $ de cd devup | |
| #-> project will autocompletion | |
| $ de up | |
| #-> should bring the environment as near as possible to a working state | |
| #-> install deps | |
| #-> setup local config like git hooks | |
| #-> run bootstrap operation (create db? pull docker images?) | |
| #-> run db migrations (support for sqlalchemy, django, rails...?) | |
| #-> tell if other operations are needed (install tricky dependency? run a setup command) | |
| $ de test | |
| #-> run test suite | |
| #-> should be usable in CI as well (or all other envs) | |
| $ de test tests/lib/test_some_specific_test.py | |
| $ de test -s | |
| #-> pass through additional args (only?) to first test command | |
| $ de lint | |
| #-> run linter(s) | |
| $ de clean | |
| #-> clean up files (is it possible to infer this?) | |
| $ de reset | |
| #-> reset persisted state (partially revert `de up`) | |
| #-> drop database (test db? dev db?) | |
| #-> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment