-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
31 lines (27 loc) · 1011 Bytes
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: DockerCompose@0
displayName: 'Run tests'
inputs:
dockerComposeFile: docker-compose-test.yml
dockerComposeCommand: up --build --abort-on-container-exit --exit-code-from test
dockerComposeFileArgs: |
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY=$(SOCIAL_AUTH_GOOGLE_OAUTH2_KEY)
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET=$(SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET)
SALESFORCE_CONSUMER_KEY=$(SALESFORCE_CONSUMER_KEY)
SALESFORCE_CONSUMER_SECRET=$(SALESFORCE_CONSUMER_SECRET)
SALESFORCE_USER=$(SALESFORCE_USER)
SALESFORCE_PASSWORD=$(SALESFORCE_PASSWORD)
SALESFORCE_HOST=$(SALESFORCE_HOST)
DEFAULT_WORKING_DIRECTORY=$(System.DefaultWorkingDirectory)
- task: PublishTestResults@2
inputs:
testResultsFiles: "**/TEST-*.xml"
condition: succeededOrFailed()
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'