BigW Consortium Gitlab

rake_tasks.md 863 Bytes
Newer Older
1 2
# Rake tasks for developers

3
## Setup db with developer seeds
4

5
Note that if your db user does not have advanced privileges you must create the db manually before running this command.
6 7 8 9 10

```
bundle exec rake setup
```

11
The `setup` task is a alias for `gitlab:setup`.
12
This tasks calls `db:reset` to create the database, calls `add_limits_mysql` that adds limits to the database schema in case of a MySQL database and finally it calls `db:seed_fu` to seed the database.
13
Note: `db:setup` calls `db:seed` but this does nothing.
14

15 16
## Run tests

17
This runs all test suites present in GitLab.
18 19 20 21 22 23 24

```
bundle exec rake test
```

## Generate searchable docs for source code

25
You can find results under the `doc/code` directory.
26 27 28 29

```
bundle exec rake gitlab:generate_docs
```
30 31 32 33 34 35

## Generate API documentation for project services (e.g. Slack)

```
bundle exec rake services:doc
```