wiki:TestManagerForTracPluginQuickSetup

Version 2 (modified by anonymous, 13 years ago) (diff)

--

Quick startup guide for Linux

This guide will help you setup a quick and dirty environment with Apache, modwsgi and the Test Manager plugin in a few minutes.

Run every command as root. The example takes into account a freshly installed Debian:

  1. Download python setup tools from PyPi
  2. Compile and install it:
    tar xvzf setuptools-0.6c11.tar.gz 
    cd setuptools-0.6c11/
    python setup.py install
    
  3. Install Trac 0.12.2 using the now available easy_install:
    easy_install Trac
    
  4. Create the needed directories to host the foo project:
    mkdir -p /var/lib/trac
    
  5. Create a foo trac project environment:
    trac-admin /var/lib/trac/foo initenv
    
  6. Create a password file for apache authentication, with an "admin" and a "roberto" users:
    htpasswd -c /var/lib/trac/foo/conf/passwd admin
    htpasswd /var/lib/trac/foo/conf/passwd roberto
    
  7. Grant anonymous TRAC_ADMIN permissions:
    trac-admin /var/lib/trac/foo permission add anonymous TRAC_ADMIN
    
  8. Run trac through tracd just to see everything worked:
    tracd --port 8000 /var/lib/trac/foo
    
  9. Set trace level to DEBUG in trac, and log to file, using the admin panel. The admin panel can be accessed from Trac's navigation bar.
  10. Configure apache and wsgi using exactly the info and paths Stefan provided.
  11. Grant everyone 777 on /var/lib/trac:
    chmod -R 777 /var/lib/trac
    
  12. Started apache:
    /etc/init.d/apache2 restart
    
  13. Verified trac was up and running, with basic authentication working, using the browser.
  14. Downloaded egg files for the TestManagerForTracPlugin from sourceforge and extracted archive.
  15. Opened browser to the foo trac project, on the admin panel, and installed TracGenericClassPlugin from the egg file.
  16. Installed TracGenericWorkflowPlugin the same way. This asks for database upgrade.
  17. Opened shell as root and fired the command shown in the browser:
    trac-admin /var/lib/trac/foo upgrade
    trac-admin /var/lib/trac/foo wiki upgrade
    
  18. Restarted apache, just to be sure cache was updated:
    /etc/init.d/apache2 restart
    
  19. Refreshed browser (F5). The trac admin page shows correctly.
  20. Installed TestManagerForTracPlugin the same way. This asks for another database upgrade.
  21. Opened shell as root and fired again the command shown on screen:
    trac-admin /var/lib/trac/foo upgrade
    trac-admin /var/lib/trac/foo wiki upgrade
    
  22. Restarted apache. I think this time is required:
    /etc/init.d/apache2 restart
    
  23. Refreshed browser. The trac admin page shows correctly.
  24. Click on the Test Manager tab in Trac's navigation bar and create a test catalog. See screenshot.