Fixed test and jenkins file
This commit is contained in:
parent
ed17d27457
commit
e621a6f9f0
2
expenses_manager/Jenkinsfile
vendored
2
expenses_manager/Jenkinsfile
vendored
@ -2,6 +2,7 @@ pipeline{
|
|||||||
agent any
|
agent any
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
|
DEBUG = 'TRUE'
|
||||||
DJANGO_SECRET_KEY = 'test-secret-key-for-ci'
|
DJANGO_SECRET_KEY = 'test-secret-key-for-ci'
|
||||||
DJANGO_SETTINGS_MODULE = "expenses_manager.settings"
|
DJANGO_SETTINGS_MODULE = "expenses_manager.settings"
|
||||||
PYTHONUNBUFFERED = "1"
|
PYTHONUNBUFFERED = "1"
|
||||||
@ -33,7 +34,6 @@ pipeline{
|
|||||||
cd expenses_manager
|
cd expenses_manager
|
||||||
|
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
export SECRET_KEY=$DJANGO_SECRET_KEY
|
|
||||||
venv/bin/pytest --cov
|
venv/bin/pytest --cov
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
|||||||
@ -158,7 +158,8 @@ DATETIME_INPUT_FORMATS = ["%d/%m/%Y %H:%M"]
|
|||||||
|
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
STATIC_ROOT = BASE_DIR / 'staticfiles'
|
STATIC_ROOT = BASE_DIR / 'staticfiles'
|
||||||
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
|
if not DEBUG:
|
||||||
|
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
|
||||||
|
|
||||||
# Default primary key field type
|
# Default primary key field type
|
||||||
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field
|
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user