diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e99abcc2..214c9b74 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -5,6 +5,11 @@ trigger: - master +- 0.3 + +pr: +- master +- 0.3 pool: vmImage: ubuntu-latest @@ -54,17 +59,12 @@ steps: - script: | python -m pip install --upgrade pip setuptools wheel - pip install -c constraint-Django$(DJANGO_VERSION).txt -r requirements.txt + pip install -c constraints-Django$(DJANGO_VERSION).txt -r requirements.txt pip install unittest-xml-reporting displayName: 'Install prerequisites' - script: | pushd '$(projectRoot)' - python manage.py test --testrunner xmlrunner.extra.djangotestrunner.XMLTestRunner --no-input + #python manage.py test --testrunner xmlrunner.extra.djangotestrunner.XMLTestRunner --no-input + python quicktest.py helpdesk displayName: 'Run tests' - -- task: PublishTestResults@2 - inputs: - testResultsFiles: "**/TEST-*.xml" - testRunTitle: 'Python $(PYTHON_VERSION)' - condition: succeededOrFailed() diff --git a/quicktest.py b/quicktest.py index dd1f19df..0c488f9b 100644 --- a/quicktest.py +++ b/quicktest.py @@ -100,6 +100,7 @@ class QuickDjangoTest(object): LOGIN_URL='/helpdesk/login/', TEMPLATES=self.TEMPLATES, SITE_ID=1, + SECRET_KEY='wowdonotusethisfakesecuritykeyyouneedarealsecure1', ## The following settings disable teams HELPDESK_TEAMS_MODEL = 'auth.User', HELPDESK_TEAMS_MIGRATION_DEPENDENCIES = [],