From 62ecc32ad5e266e9a2a7f277f7a292788236a983 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 27 Sep 2015 01:41:31 -0400 Subject: [PATCH] Add --nomigrations swtich to test config files. Add metadata app to gitlab test config file. --- .gitlab-ci.yml | 8 ++++---- .travis.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 90adbb57c6..b2a4d185ce 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,10 +13,10 @@ job_test: - pip install -r requirements/testing.txt - pip install -q mysql-python - pip install -q psycopg2 - - export TEST_APPS="acls authentication checkouts django_gpg document_indexing document_signatures documents dynamic_search folders lock_manager ocr permissions sources tags" - - coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.base - - coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.gitlab-ci.db_mysql - - coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.gitlab-ci.db_postgres + - export TEST_APPS="acls authentication checkouts django_gpg document_indexing document_signatures documents dynamic_search folders lock_manager metadata ocr permissions sources tags" + - coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.base --nomigrations + - coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.gitlab-ci.db_mysql --nomigrations + - coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.gitlab-ci.db_postgres --nomigrations - coveralls variables: POSTGRES_DB: "mayan_edms" diff --git a/.travis.yml b/.travis.yml index ba32244d45..56c7168d78 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,9 +19,9 @@ before_script: - mysql -e 'create database mayan_edms;' - psql -c 'create database mayan_edms;' -U postgres script: - - if [[ $DB == mysql ]]; then coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.travis.db_mysql; fi - - if [[ $DB == postgres ]]; then coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.travis.db_postgres; fi - - if [[ $DB == sqlite ]]; then coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.base; fi + - if [[ $DB == mysql ]]; then coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.travis.db_mysql --nomigrations; fi + - if [[ $DB == postgres ]]; then coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.travis.db_postgres --nomigrations; fi + - if [[ $DB == sqlite ]]; then coverage run manage.py test $TEST_APPS --settings=mayan.settings.testing.base --nomigrations; fi after_success: - coveralls branches: