Created
December 1, 2016 22:40
-
-
Save dkarchmer/b248b87eef529b5898a5160a2eb8cf11 to your computer and use it in GitHub Desktop.
Setup to run django-aws-template on codeship
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
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 .. |
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
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