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