(→Set up QA Reports) |
(→Install Ruby) |
||
| Line 7: | Line 7: | ||
Packaged version of Ruby tends to be pretty old and won't probably won't work very well. Thus this guide uses [http://rvm.beginrescueend.com/ Ruby Version Manager (rvm)]. | Packaged version of Ruby tends to be pretty old and won't probably won't work very well. Thus this guide uses [http://rvm.beginrescueend.com/ Ruby Version Manager (rvm)]. | ||
| - | # Install dependencies:<br /><tt>$ sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev</tt> | + | # Install dependencies:<br /><tt>$ sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libqt4-dev</tt> |
# Install rvm: <tt>$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)</tt> # NOTE: if network proxy blocks cloning via git proxy, try download the script and change git to http | # Install rvm: <tt>$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)</tt> # NOTE: if network proxy blocks cloning via git proxy, try download the script and change git to http | ||
# Follow the instructions printed once installation is ready | # Follow the instructions printed once installation is ready | ||
| Line 14: | Line 14: | ||
### Edit <tt>.bashrc</tt> as described | ### Edit <tt>.bashrc</tt> as described | ||
### Restart your shell to have rvm enabled | ### Restart your shell to have rvm enabled | ||
| - | # Install Ruby: <tt>$ rvm install | + | # Install Ruby: <tt>$ rvm install ree</tt> |
| - | # Set into use: <tt>$ rvm use | + | # Set into use: <tt>$ rvm use ree</tt> |
| - | ## If you want to use this ruby version as a default, use <tt>$ rvm --default use | + | ## If you want to use this ruby version as a default, use <tt>$ rvm --default use ree</tt> |
# <tt>$ gem update --system</tt> | # <tt>$ gem update --system</tt> | ||
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).
This is an optional step in case you want to use MySQL instead of SQLite.
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