diff options
| author | 2020-02-10 21:37:43 +1100 | |
|---|---|---|
| committer | 2020-02-10 21:37:43 +1100 | |
| commit | f34139a2811a3a05f68c1a18afb345c914da35f3 (patch) | |
| tree | a8ae0af8510f5dc5bc0b4878ba73d4e34920d08d /azure-pipelines.yml | |
| parent | Remove trailing comma (diff) | |
| parent | Merge pull request #625 from python-discord/emoji-cleanup (diff) | |
Merge branch 'master' of https://github.com/python-discord/bot into help-refactor
Conflicts:
bot/cogs/help.py
Diffstat (limited to 'azure-pipelines.yml')
| -rw-r--r-- | azure-pipelines.yml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c22bac089..0400ac4d2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,9 +30,12 @@ jobs: - script: python -m flake8 displayName: 'Run linter' - - script: BOT_API_KEY=foo BOT_TOKEN=bar WOLFRAM_API_KEY=baz python -m pytest --junitxml=junit.xml --cov=bot --cov-branch --cov-report=term --cov-report=xml tests + - script: BOT_API_KEY=foo BOT_TOKEN=bar WOLFRAM_API_KEY=baz REDDIT_CLIENT_ID=spam REDDIT_SECRET=ham coverage run -m xmlrunner displayName: Run tests + - script: coverage report -m && coverage xml -o coverage.xml + displayName: Generate test coverage report + - task: PublishCodeCoverageResults@1 displayName: 'Publish Coverage Results' condition: succeededOrFailed() @@ -41,11 +44,11 @@ jobs: summaryFileLocation: coverage.xml - task: PublishTestResults@2 - displayName: 'Publish Test Results' condition: succeededOrFailed() + displayName: 'Publish Test Results' inputs: - testResultsFiles: junit.xml - testRunTitle: 'Bot Test results' + testResultsFiles: '**/TEST-*.xml' + testRunTitle: 'Bot Test Results' - job: build displayName: 'Build & Push Container' |