summaryrefslogtreecommitdiff
path: root/doc/development.md
blob: b7213adc1e0811151ed656d007f46a3c60e9179d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
## Development tips:


### Installation

Install the Gitlab development in a virtual machine with the [Gitlab Vagrant virtual machine](https://github.com/gitlabhq/gitlab-vagrant-vm). Installing it in a virtual machine makes it much easier to set up all the dependencies for integration testing.


### Start application in development mode

#### 1. Via foreman

    bundle exec foreman start -p 3000

#### 2. Manually

    bundle exec rails s
    bundle exec rake environment resque:work QUEUE=* VVERBOSE=1


### Test DB setup & seed

    bundle exec rake db:setup RAILS_ENV=test
    bundle exec rake db:seed_fu RAILS_ENV=test


###  Run the Tests

    # All in one
    bundle exec rake gitlab:test

    # Rspec
    bundle exec rake spec

    # Spinach
    bundle exec rake spinach