Add virtual environment activation

This commit is contained in:
Devon Mackay 2018-05-30 15:10:31 -04:00
parent f6fa44b065
commit 62c36cd516
4 changed files with 12 additions and 0 deletions

View File

@ -6,6 +6,9 @@ set -e
# Ensure we are in the app root directory (not the /script directory)
cd "$(dirname "$0")/.."
# Activate virtual environment
source .venv/bin/activate
# Install Python dependencies
pip install -r requirements.txt

View File

@ -6,5 +6,8 @@ set -e
# Ensure we are in the app root directory (not the /script directory)
cd "$(dirname "$0")/.."
# Activate virtual environment
source .venv/bin/activate
# Launch the app
python3 app.py

View File

@ -6,5 +6,8 @@ set -e
# Ensure we are in the app root directory (not the /script directory)
cd "$(dirname "$0")/.."
# Activate virtual environment
source .venv/bin/activate
# Run unit tests
python3 -m pytest

View File

@ -6,5 +6,8 @@ set -e
# Ensure we are in the app root directory (not the /script directory)
cd "$(dirname "$0")/.."
# Activate virtual environment
source .venv/bin/activate
# Update dependencies
script/bootstrap