Skip to content

Commit

Permalink
Add a script to run mezzanine tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryneeverett committed May 30, 2016
1 parent e4db44f commit 089afe8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
.DS_Store
*.pyc
.svn
mezzanine-git/
1 change: 1 addition & 0 deletions .hgignore
Expand Up @@ -3,3 +3,4 @@ syntax: glob
build/*
dist/*
filebrowser_safe.egg-info/*
mezzanine-git/
5 changes: 5 additions & 0 deletions README.rst
Expand Up @@ -14,3 +14,8 @@ address these specific issues.

For further details, see
`Why are Grappelli and Filebrowser Forked? <http://mezzanine.jupo.org/docs/frequently-asked-questions.html#grappelli-filebrowser-forks>`_.

Development
===========

You can test your local branch against the latest mezzanine development version by running `./test.sh`.
16 changes: 16 additions & 0 deletions test.sh
@@ -0,0 +1,16 @@
#!/bin/sh

# Install latest mezzanine master branch.
mezzanine="./mezzanine-git"
if [ -d $mezzanine ]; then
git -C $mezzanine pull
else
git clone --branch master --depth 1 https://github.com/stephenmcd/mezzanine.git $mezzanine
fi
pip install -U $mezzanine

# Install filebrowser-safe.
pip install -U -e .

# Run mezzanine tests.
(cd $mezzanine && python setup.py test)

0 comments on commit 089afe8

Please sign in to comment.