Skip to content

Instantly share code, notes, and snippets.

@pior
Created July 2, 2017 19:47
Show Gist options
  • Select an option

  • Save pior/5ece99bb4f783fe644afc6bc4c42c20d to your computer and use it in GitHub Desktop.

Select an option

Save pior/5ece99bb4f783fe644afc6bc4c42c20d to your computer and use it in GitHub Desktop.
DevUp - help your contributors to onboard
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

MyProject

Development

  • Install DevUp with brew install devup or pip install devup.
  • Clone the project with de clone user/myproject.
  • Prepare your local development environment de up.
  • Test and lint! de test de lint
$ 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