Created
December 9, 2015 16:30
-
-
Save mikek/c3501bda5cc3f0017f62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
set -e -u -x | |
REPO_DIR=django-cms | |
REPO=git@github.com:FinalAngel/django-cms.git | |
REPO_BRANCH=initial-test-suite | |
VENV_DIR=env | |
DJANGO_VERSION=1.8 | |
# does not work with djangocms-helper | |
# DATABASE_URL="sqlite://localhost/:memory:" | |
DATABASE_FILE="testdb.sqlite" | |
DATABASE_URL="sqlite://localhost/$DATABASE_FILE" | |
# do it by hand if you really have spare 10+ minutes for pip and npm | |
# rm -rf $REPO_DIR | |
if [ -d $REPO_DIR ] ; then | |
cd $REPO_DIR | |
git fetch | |
else | |
git clone $REPO $REPO_DIR | |
cd $REPO_DIR | |
fi | |
git checkout $REPO_BRANCH | |
if [ ! -d $VENV_DIR ] ; then | |
virtualenv $VENV_DIR | |
fi | |
set +u | |
source $VENV_DIR/bin/activate | |
set -u | |
pip install -e . | |
pip install -r test_requirements/django-$DJANGO_VERSION.txt | |
npm install | |
rm -f $DATABASE_FILE | |
djangocms-helper cms --cms server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment