mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-15 01:32:20 -05:00
improved local test-running ability
call generate-version-file before tests, since they'll fall over if the version file isn't present use /Users/leohemsted/.virtualenvs/api rather than looking for ./venv/ - if there's some other venv already active, then don't try and look for a current venv to activate
This commit is contained in:
@@ -24,7 +24,7 @@ function display_result {
|
||||
fi
|
||||
}
|
||||
|
||||
if [ -d venv ]; then
|
||||
if [ -z "$VIRTUAL_ENV" ]; then
|
||||
source ./venv/bin/activate
|
||||
fi
|
||||
pep8 .
|
||||
|
||||
Reference in New Issue
Block a user