Welcome to mirror list, hosted at ThFree Co, Russian Federation.

development.md « doc - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 67bcb8e1c9605c2b0718a4fff5be8b6b93afb78e (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
37
38
39
40
41
42
43
44
45
## Development tips: 

### Start application in development mode

#### 1. Via foreman 

    bundle exec foreman -p 3000

#### 2. Via gitlab cli

    ./gitlab start

#### 3. Manually

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


### Run tests: 
 
#### 1. Packages

    # ubuntu
    sudo apt-get install libqt4-dev libqtwebkit-dev
    sudo apt-get install xvfb
   
    # Mac 
    brew install qt
    brew install xvfb

#### 2. DB & seeds

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

###  3. Run Tests

    # All in one
    bundle exec rake gitlab:test
    
    # Rspec 
    bundle exec rake spec
    
    # Spinach
    bundle exec rake spinach