Compare commits

..

6 Commits

Author SHA1 Message Date
514a1bd75c Merge pull request 'dev' (#38) from dev into main
All checks were successful
Tests / CI / Run tests passed: 206
expenses_manager/pipeline/head This commit looks good
Reviewed-on: #38
2026-09-30 15:10:21 +00:00
dbe993a814 Merge branch 'main' into dev
All checks were successful
Tests / CI / Run tests passed: 206
expenses_manager/pipeline/head This commit looks good
2026-09-30 15:10:01 +00:00
c122e14472 Updated Jenkinsfile
All checks were successful
Tests / CI / Run tests passed: 206
expenses_manager/pipeline/head This commit looks good
2026-09-30 17:09:29 +02:00
aa6f49097d Removed __init__ from gitignore and added to the repo the __init__ files
All checks were successful
Tests / CI / Run tests passed: 206
expenses_manager/pipeline/head This commit looks good
2026-09-30 16:53:27 +02:00
c38e728e1a Merge branch 'dev' of https://gitea.kuijper.es/jkuijperm/expenses_manager into dev
All checks were successful
Tests / CI / Run tests passed: 206
expenses_manager/pipeline/head This commit looks good
2026-09-30 16:45:44 +02:00
74af1a5f36 Added __init__ for the migrations 2026-09-30 16:45:38 +02:00
6 changed files with 19 additions and 3 deletions

1
.gitignore vendored
View File

@ -3,7 +3,6 @@
__pycache__/
*.py[cod]
*$py.class
__init__.py
# C extensions
*.so

View File

@ -119,6 +119,23 @@ pipeline {
-e DB_ENGINE=sqlite3 \
${IMAGE}:${SHA} python manage.py check"
'''
// A migrations directory without __init__.py is a namespace
// package, and Django deliberately ignores those: the app then
// appears to have no migrations at all, migrate --check always
// reports nothing pending, and a real migration would silently
// never be applied. This is what .gitignore line 6 caused.
sh '''
SHA=$(echo "${GIT_COMMIT}" | cut -c1-7)
ssh ${SSH_OPTS} ${NAS_USER}@${NAS_HOST} \
"sudo ${NAS_DOCKER} run --rm \
-e SECRET_KEY=smoke-test-only \
-e DEBUG=False \
-e ALLOWED_HOSTS=localhost \
-e DB_ENGINE=sqlite3 \
${IMAGE}:${SHA} python manage.py showmigrations expenses" \
| grep -q '0001_initial'
'''
}
}
}

View File