testing azure pipelines
This commit is contained in:
parent
c29674c331
commit
1bfc08f397
|
@ -151,3 +151,45 @@ if 'TRAVIS' in os.environ:
|
|||
MESH_USERNAME = "travis"
|
||||
MESH_SITE = "https://example.com"
|
||||
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"
|
|
@ -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'
|
Loading…
Reference in New Issue