Skip to content

Instantly share code, notes, and snippets.

@dkarchmer
Created December 1, 2016 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dkarchmer/b248b87eef529b5898a5160a2eb8cf11 to your computer and use it in GitHub Desktop.
Save dkarchmer/b248b87eef529b5898a5160a2eb8cf11 to your computer and use it in GitHub Desktop.
Setup to run django-aws-template on codeship
if [ -d "${HOME}/cache/python3_env" ]; then echo "venv exists"; else virtualenv -p $(which python3) "${HOME}/cache/python3_env";fi
source "${HOME}/cache/python3_env/bin/activate"
pip install -r server/requirements/development.txt
nvm install 5
npm install -g gulp bower
cd webapp
bower install
npm install
cd ..
cd webapp
gulp
cd ../server
PYTHONPATH=$PWD python manage.py collectstatic --noinput
# Running your Django tests
cd ..
PYTHONPATH=$PWD/server py.test --cov-config .coveragerc --cov=apps server/apps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment