Skip to content
Snippets Groups Projects
Commit 38f1a7a0 authored by Carlos Vega's avatar Carlos Vega
Browse files

added some more checks on migrations

parent 31cbe4bc
No related branches found
No related tags found
1 merge request!462Redcap/generic test instance
Pipeline #95012 passed
...@@ -28,12 +28,24 @@ gemnasium-python-dependency_scanning: ...@@ -28,12 +28,24 @@ gemnasium-python-dependency_scanning:
- pip install -r requirements-dev.txt --default-timeout=180 -i https://repomanager.lcsb.uni.lu/repository/pypi-proxy/simple/ --extra-index-url https://pypi.python.org/simple/ - pip install -r requirements-dev.txt --default-timeout=180 -i https://repomanager.lcsb.uni.lu/repository/pypi-proxy/simple/ --extra-index-url https://pypi.python.org/simple/
test_migrations_created: test_migrations_created_postgres:
<<: *test_definition <<: *test_definition
services: services:
- postgres:latest - postgres:latest
script: script:
- cp "local_settings_ci.py" "smash/smash/local_settings.py" - cp "local_settings_ci.py" "smash/smash/local_settings.py"
- pip install "psycopg2==2.9.9"
- cd smash
- python manage.py makemigrations --check --dry-run
- test 1 = $(python manage.py makemigrations --check --dry-run | grep 'No changes detected' |wc -l)
test_migrations_created_mariadb:
<<: *test_definition
services:
- mariadb:10.6-ubi
script:
- cp "local_settings_ci_mariadb.py" "smash/smash/local_settings.py"
- pip install "mysqlclient==2.2.4"
- cd smash - cd smash
- python manage.py makemigrations --check --dry-run - python manage.py makemigrations --check --dry-run
- test 1 = $(python manage.py makemigrations --check --dry-run | grep 'No changes detected' |wc -l) - test 1 = $(python manage.py makemigrations --check --dry-run | grep 'No changes detected' |wc -l)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment