Commit 9653ddf69332c2f707aef39ea528bb0d3e5f0a08

Authored by Dmitriy Zaporozhets
2 parents 1f84518a 7e10d101

Merge branch 'rake_setup' into 'master'

rake setup

Add alias `rake setup` to `rake gitlab:setup`
Mention in developer docs
doc/development/README.md
1   -+ [Architecture](architecture.md)
2   -+ [Shell commands](shell_commands.md)
  1 +## Development
  2 +
  3 ++ [Architecture](architecture.md) of GitLab
  4 ++ [Shell commands](shell_commands.md) in the GitLab codebase
  5 ++ [Rake tasks](rake_tasks.md) for development
... ...
doc/development/rake_tasks.md 0 → 100644
... ... @@ -0,0 +1,25 @@
  1 +# Rake tasks for developers
  2 +
  3 +## Setup db with developer seeds:
  4 +
  5 +Note that if your db user does not have advanced privilegies you must create db manually before run this command
  6 +
  7 +```
  8 +bundle exec rake setup
  9 +```
  10 +
  11 +## Run tests
  12 +
  13 +This runs all test suite present in GitLab
  14 +
  15 +```
  16 +bundle exec rake test
  17 +```
  18 +
  19 +## Generate searchable docs for source code
  20 +
  21 +You can find results under `doc/code` directory
  22 +
  23 +```
  24 +bundle exec rake gitlab:generate_docs
  25 +```
... ...
lib/tasks/setup.rake 0 → 100644
... ... @@ -0,0 +1,4 @@
  1 +desc "GITLAB | Setup gitlab db"
  2 +task :setup do
  3 + Rake::Task["gitlab:setup"].invoke
  4 +end
... ...