mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-17 02:32:32 -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:
2
Makefile
2
Makefile
@@ -75,7 +75,7 @@ upload-codedeploy-artifact: check-env-vars
|
|||||||
aws s3 cp --region eu-west-1 target/notifications-api.zip s3://${DNS_NAME}-codedeploy/notifications-api-${DEPLOY_BUILD_NUMBER}.zip
|
aws s3 cp --region eu-west-1 target/notifications-api.zip s3://${DNS_NAME}-codedeploy/notifications-api-${DEPLOY_BUILD_NUMBER}.zip
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: venv ## Run tests
|
test: venv generate-version-file ## Run tests
|
||||||
./scripts/run_tests.sh
|
./scripts/run_tests.sh
|
||||||
|
|
||||||
.PHONY: deploy-api
|
.PHONY: deploy-api
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ function display_result {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -d venv ]; then
|
if [ -z "$VIRTUAL_ENV" ]; then
|
||||||
source ./venv/bin/activate
|
source ./venv/bin/activate
|
||||||
fi
|
fi
|
||||||
pep8 .
|
pep8 .
|
||||||
|
|||||||
Reference in New Issue
Block a user