Compare commits

..

No commits in common. "514a1bd75cba7efc56828d87387e23cfc9a7c1e3" and "f2e332f35bd9f407445c9ba692fafe350612fc1b" have entirely different histories.

6 changed files with 3 additions and 19 deletions

1
.gitignore vendored
View File

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

View File

@ -119,23 +119,6 @@ pipeline {
-e DB_ENGINE=sqlite3 \ -e DB_ENGINE=sqlite3 \
${IMAGE}:${SHA} python manage.py check" ${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'
'''
} }
} }
} }