-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refer developers to the vagrant vm and remove out of date documentation.
- Loading branch information
Showing
2 changed files
with
23 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,36 @@ | ||
## Development tips: | ||
## Development tips: | ||
|
||
### Start application in development mode | ||
|
||
#### 1. Via foreman | ||
### Installation | ||
|
||
bundle exec foreman -p 3000 | ||
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. | ||
|
||
#### 2. Via gitlab cli | ||
|
||
./gitlab start | ||
### Start application in development mode | ||
|
||
#### 3. Manually | ||
#### 1. Via gitlab cli | ||
|
||
bundle exec rails s | ||
bundle exec rake environment resque:work QUEUE=* VVERBOSE=1 | ||
./gitlab start | ||
|
||
#### 2. Manually | ||
|
||
### Run tests: | ||
|
||
#### 1. Packages | ||
bundle exec rails s | ||
bundle exec rake environment resque:work QUEUE=* VVERBOSE=1 | ||
|
||
# ubuntu | ||
sudo apt-get install libqt4-dev libqtwebkit-dev | ||
sudo apt-get install xvfb | ||
|
||
# Mac | ||
brew install qt | ||
brew install xvfb | ||
|
||
#### 2. DB & seeds | ||
### Test DB seutup & seed | ||
|
||
bundle exec rake db:setup RAILS_ENV=test | ||
bundle exec rake db:seed_fu RAILS_ENV=test | ||
|
||
### 3. Run Tests | ||
|
||
### Run the Tests | ||
|
||
# All in one | ||
bundle exec rake gitlab:test | ||
# Rspec | ||
|
||
# Rspec | ||
bundle exec rake spec | ||
|
||
# Spinach | ||
bundle exec rake spinach |