Commit bcd001f2 authored by Sytse Sijbrandij's avatar Sytse Sijbrandij

Refer developers to the vagrant vm and remove out of date documentation.

parent 2ff36e74
...@@ -15,16 +15,12 @@ We will only accept pull requests if: ...@@ -15,16 +15,12 @@ We will only accept pull requests if:
* It's quality code * It's quality code
* We like it :) * We like it :)
## [You may need a developer VM](https://github.com/gitlabhq/developer-vm) For examples of feedback on pull requests please look at the [closed pull requests](https://github.com/gitlabhq/gitlabhq/pulls?direction=desc&page=1&sort=created&state=closed).
## Running tests ## Installation
To run the specs for GitLab, you need to run seeds for test db.
cd gitlabhq 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.
rake db:seed_fu RAILS_ENV=test
Then you can run the test suite with rake: ## Running tests
rake gitlab:test
For more information on running the tests please read the [development tips](https://github.com/gitlabhq/gitlabhq/blob/master/doc/development.md)
## Development tips: ## Development tips:
### Start application in development mode
#### 1. Via foreman ### 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.
bundle exec foreman -p 3000
#### 2. Via gitlab cli ### Start application in development mode
#### 1. Via gitlab cli
./gitlab start ./gitlab start
#### 3. Manually #### 2. Manually
bundle exec rails s bundle exec rails s
bundle exec rake environment resque:work QUEUE=* VVERBOSE=1 bundle exec rake environment resque:work QUEUE=* VVERBOSE=1
### Run tests: ### Test DB seutup & seed
#### 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:setup RAILS_ENV=test
bundle exec rake db:seed_fu RAILS_ENV=test bundle exec rake db:seed_fu RAILS_ENV=test
### 3. Run Tests
### Run the Tests
# All in one # All in one
bundle exec rake gitlab:test bundle exec rake gitlab:test
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment