summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-04-25 06:04:39 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-04-25 06:04:39 +0000
commit9653ddf69332c2f707aef39ea528bb0d3e5f0a08 (patch)
treec09a45fee99c7d560bb66abca6350f3e96b085d9
parent1f84518ab7128e302f44085b4ecd8686f3f2ea2d (diff)
parent7e10d1017819ea0be41887803e9b4d6edd92bf49 (diff)
downloadgitlab-ce-9653ddf69332c2f707aef39ea528bb0d3e5f0a08.tar.gz
Merge branch 'rake_setup' into 'master'
rake setup Add alias `rake setup` to `rake gitlab:setup` Mention in developer docs
-rw-r--r--doc/development/README.md7
-rw-r--r--doc/development/rake_tasks.md25
-rw-r--r--lib/tasks/setup.rake4
3 files changed, 34 insertions, 2 deletions
diff --git a/doc/development/README.md b/doc/development/README.md
index aa59eb2c3e1..eb88b6c860f 100644
--- a/doc/development/README.md
+++ b/doc/development/README.md
@@ -1,2 +1,5 @@
-+ [Architecture](architecture.md)
-+ [Shell commands](shell_commands.md)
+## Development
+
++ [Architecture](architecture.md) of GitLab
++ [Shell commands](shell_commands.md) in the GitLab codebase
++ [Rake tasks](rake_tasks.md) for development
diff --git a/doc/development/rake_tasks.md b/doc/development/rake_tasks.md
new file mode 100644
index 00000000000..9e75b3a6275
--- /dev/null
+++ b/doc/development/rake_tasks.md
@@ -0,0 +1,25 @@
+# Rake tasks for developers
+
+## Setup db with developer seeds:
+
+Note that if your db user does not have advanced privilegies you must create db manually before run this command
+
+```
+bundle exec rake setup
+```
+
+## Run tests
+
+This runs all test suite present in GitLab
+
+```
+bundle exec rake test
+```
+
+## Generate searchable docs for source code
+
+You can find results under `doc/code` directory
+
+```
+bundle exec rake gitlab:generate_docs
+```
diff --git a/lib/tasks/setup.rake b/lib/tasks/setup.rake
new file mode 100644
index 00000000000..93701de8f63
--- /dev/null
+++ b/lib/tasks/setup.rake
@@ -0,0 +1,4 @@
+desc "GITLAB | Setup gitlab db"
+task :setup do
+ Rake::Task["gitlab:setup"].invoke
+end