Skip to content
Snippets Groups Projects
Commit 6c4f4bdd authored by Vermaat's avatar Vermaat
Browse files

Some reorganisation. Added post-install script.

parent 65b9196f
No related branches found
No related tags found
No related merge requests found
...@@ -12,9 +12,10 @@ Usage: ...@@ -12,9 +12,10 @@ Usage:
import sys import sys
import os import os
import Mutalyzer
from Modules import Output import mutalyzer
from Modules import Config from mutalyzer.output import Output
from mutalyzer.config import Config
def main(cmd): def main(cmd):
...@@ -23,8 +24,8 @@ def main(cmd): ...@@ -23,8 +24,8 @@ def main(cmd):
@todo: documentation @todo: documentation
""" """
C = Config.Config() C = Config()
O = Output.Output(__file__, C.Output) O = Output(__file__, C.Output)
O.addMessage(__file__, -1, "INFO", "Received variant " + cmd) O.addMessage(__file__, -1, "INFO", "Received variant " + cmd)
......
#!/bin/sh
# This is just an example of running the test suite and producing a HTML
# coverage report.
# Something like this should eventually be used on the test server as a
# post-commit hook.
nosetests --with-coverage --cover-package mutalyzer --cover-html --cover-html-dir=/tmp/nosecover -v
File moved
#!/bin/bash
# Post-install script for Mutalyzer. Run after the setuptools installation
# (python setup.py install).
#
# Usage (from the source root directory):
# sudo bash extras/post-install.sh
# Todo:
# - Database setup
# - Copy doc to /usr/share/doc
if [ ! -f /etc/mutalyzer/config ]; do
mkdir -p /etc/mutalyzer
cp extras/config.example /etc/mutalyzer/config
chmod -R u=rwX,go=rX /etc/mutalyzer
fi
touch /var/log/mutalyzer.log
chown www-data:www-data /var/log/mutalyzer.log
chmod u=rw,go=r /var/log/mutalyzer.log
mkdir -p /var/cache/mutalyzer
chown -R www-data:www-data /var/cache/mutalyzer
chmod -R u=rwX,go=rX /var/cache/mutalyzer
if [ ! -f /etc/init.d/mutalyzer-batchd ]; do
cp extras/init.d/mutalyzer-batchd /etc/init.d/mutalyzer-batchd
chmod u=rwx,go=rx /etc/init.d/mutalyzer-batchd
fi
...@@ -17,7 +17,7 @@ setup( ...@@ -17,7 +17,7 @@ setup(
platforms=['any'], platforms=['any'],
packages=find_packages(exclude=['doc', 'extras', 'tests']), packages=find_packages(exclude=['doc', 'extras', 'tests']),
include_package_data=True, include_package_data=True,
scripts=['bin/mutalyzer-batchd'], scripts=['bin/mutalyzer', 'bin/mutalyzer-batchd'],
zip_safe=False zip_safe=False
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment