testing azure pipelines

This commit is contained in:
wh1te909 2019-12-30 21:32:07 +00:00
parent c29674c331
commit 1bfc08f397
2 changed files with 65 additions and 1 deletions

View File

@ -150,4 +150,46 @@ if 'TRAVIS' in os.environ:
SALT_PASSWORD = "travis"
MESH_USERNAME = "travis"
MESH_SITE = "https://example.com"
TWO_FACTOR_OTP = "TRAVIS"
TWO_FACTOR_OTP = "TRAVIS"
if 'AZPIPELINE' in os.environ:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'pipeline',
'USER': 'pipeline',
'PASSWORD': 'pipeline123456',
'HOST': '127.0.0.1',
'PORT': ''
}
}
REST_FRAMEWORK = {
'DATETIME_FORMAT': "%b-%d-%Y - %H:%M",
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',
),
'DEFAULT_AUTHENTICATION_CLASSES': (
'knox.auth.TokenAuthentication',
),
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.JSONRenderer',
)
}
DEBUG = True
SECRET_KEY = 'abcdefghijklmnoptravis123456789'
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'pipeline@example.com'
EMAIL_HOST_PASSWORD = 'pipeline'
EMAIL_PORT = 587
EMAIL_ALERT_RECIPIENTS = ["pipeline@example.com",]
SALT_USERNAME = "pipeline"
SALT_PASSWORD = "pipeline"
MESH_USERNAME = "pipeline"
MESH_SITE = "https://example.com"
TWO_FACTOR_OTP = "ABC12345"

22
azure-pipelines.yml Normal file
View File

@ -0,0 +1,22 @@
trigger:
- develop
jobs:
- job: setup_env
displayName: 'Setup Environment'
strategy:
matrix:
Ubuntu18:
AGENT_NAME: 'rmm-ubuntu18'
pool:
name: linux-vms
demands:
- agent.name -equals $(AGENT_NAME)
steps:
- script: |
echo test123
displayName: 'Run Tests'