2012-10-24 16:45:18 +02:00
## Development tips:
2012-08-30 20:31:55 +02:00
2012-10-24 16:45:18 +02:00
### Installation
2012-08-30 20:31:55 +02:00
2012-10-24 16:45:18 +02:00
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.
2012-08-30 20:31:55 +02:00
2012-10-24 16:45:18 +02:00
### Start application in development mode
2012-08-30 20:31:55 +02:00
2012-11-07 13:01:23 +01:00
#### 1. Via foreman
2012-08-30 20:31:55 +02:00
2012-11-07 13:01:23 +01:00
bundle exec foreman start -p 3000
2012-08-30 20:31:55 +02:00
2012-10-24 16:45:18 +02:00
#### 2. Manually
2012-08-30 20:31:55 +02:00
2012-10-24 16:45:18 +02:00
bundle exec rails s
bundle exec rake environment resque:work QUEUE=* VVERBOSE=1
2012-08-30 20:31:55 +02:00
2012-11-14 19:33:22 +01:00
### Test DB setup & seed
2012-08-30 20:31:55 +02:00
bundle exec rake db:setup RAILS_ENV=test
bundle exec rake db:seed_fu RAILS_ENV=test
2012-10-24 16:45:18 +02:00
### Run the Tests
2012-08-30 20:31:55 +02:00
# All in one
2012-09-15 21:52:01 +02:00
bundle exec rake gitlab:test
2012-10-24 16:45:18 +02:00
# Rspec
2012-08-30 20:31:55 +02:00
bundle exec rake spec
2012-10-24 16:45:18 +02:00
2012-09-15 21:53:45 +02:00
# Spinach
bundle exec rake spinach