(→Using MySQL) |
(→Set up QA Reports) |
||
| Line 22: | Line 22: | ||
# Install preqrequisites: | # Install preqrequisites: | ||
| - | ## <tt>$ sudo apt-get install libmysqlclient-dev mysql-server libxml2-dev libxslt1 | + | ## <tt>$ sudo apt-get install libmysqlclient-dev mysql-server libxml2-dev libxslt1-dev</tt> |
## <tt>$ gem install bundler --no-ri --no-rdoc</tt> | ## <tt>$ gem install bundler --no-ri --no-rdoc</tt> | ||
# Clone qa-reports from git: <tt>$ git clone git://gitorious.org/meego-quality-assurance/qa-reports.git</tt> | # Clone qa-reports from git: <tt>$ git clone git://gitorious.org/meego-quality-assurance/qa-reports.git</tt> | ||
| Line 28: | Line 28: | ||
# <tt>$ bundle install --without staging production</tt> (If bundle install fails, run <tt>$ apt-get install libqt4-dev</tt> first.) | # <tt>$ bundle install --without staging production</tt> (If bundle install fails, run <tt>$ apt-get install libqt4-dev</tt> first.) | ||
# <tt>$ cp config/database.example.yml config/database.yml</tt> | # <tt>$ cp config/database.example.yml config/database.yml</tt> | ||
| - | |||
| - | |||
Create MySQL user and two databases, one for development and the other for executing the tests | Create MySQL user and two databases, one for development and the other for executing the tests | ||
Contents |
QA Reports is a Ruby on Rails application so you need to install a bunch of stuff to get it up and running. This documentation is based on Ubuntu 10.10
Packaged version of Ruby tends to be pretty old and won't probably won't work very well. Thus this guide uses Ruby Version Manager (rvm).
Create MySQL user and two databases, one for development and the other for executing the tests
Configure QA Reports to use MySQL databases by editing config/database.yml as shown below
development: adapter: mysql2 encoding: utf8 reconnect: false database: qa_reports_development pool: 5 username: qa_reports password: <password_of_your_choosing> socket: /var/run/mysqld/mysqld.sock test: adapter: mysql2 encoding: utf8 reconnect: false database: qa_reports_test pool: 5 username: qa_reports password: <password_of_your_choosing> socket: /var/run/mysqld/mysqld.sock
Run the migrations