/theme-default

Inyoka OSS Theme

Primary LanguageHTMLOtherNOASSERTION

Inyoka default Theme

Build status of the staging branch

Installation

On development systems:

  1. Run git clone git@github.com:inyokaproject/theme-default.git next to the cloned Inyoka repository. (Basically, it doesn't matter were you clone the theme repository, but for support reasons it might be better to use the same base folder like for Inyoka). After cloning the file-structure should look like:

    $ tree -L 1
    .
    ├── inyoka
    ├── theme-default
    └── maybe another-theme
    
  2. Switch into the repository: cd theme-default

  3. Activate source source ~/.venvs/inyoka/bin/activate

  4. Install as a development package: python setup.py develop

  5. Run npm install to install Grunt

  6. Run ./node_modules/grunt-cli/bin/grunt watch to build all static files and watch for file changes on the CSS / JS files

  7. Let Django know about the theme. Add 'inyoka_theme_default' to the INSTALLED_APPS in inyoka/development_settings.py:

    INSTALLED_APPS = INSTALLED_APPS + (
        'inyoka_theme_default',
    )
    

On Production

  1. Run pip install -U "git+ssh://git@github.com:inyokaproject/theme-default.git@staging#egg=inyoka-theme-default"

Deployment

  1. Run npm install to install Grunt
  2. Run ./node_modules/grunt-cli/bin/grunt to build all static files
  3. Run manage.py collectstatic in your Django project

Running the tests

We're using tox to handle different Python (other) dependencies:

$ pip install tox
$ tox
py27 runtests: PYTHONHASHSEED='3431216340'
py27 runtests: commands[0] | python -m unittest discover
...........................................................................
..
----------------------------------------------------------------------
Ran 77 tests in 0.533s

OK
py33 runtests: PYTHONHASHSEED='3431216340'
py33 runtests: commands[0] | python -m unittest discover
...........................................................................
..
----------------------------------------------------------------------
Ran 77 tests in 0.601s

OK
py34 runtests: PYTHONHASHSEED='3431216340'
py34 runtests: commands[0] | python -m unittest discover
...........................................................................
..
----------------------------------------------------------------------
Ran 77 tests in 0.525s

OK
_________________________________ summary _________________________________
  py27: commands succeeded
  py33: commands succeeded
  py34: commands succeeded
  congratulations :)

You can also use the Python unittest framework directly:

$ python -m unittest discover
...........................................................................
..
----------------------------------------------------------------------
Ran 77 tests in 0.537s

OK