aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-03-03 08:32:57 -0800
committerGravatar MarkKoz <[email protected]>2020-03-09 17:50:41 -0700
commit8e98a48420be718973b9a5b8aec83d4133ddc6e9 (patch)
tree2d5260b14ac397badb4145b6a8622ae6347e7371
parentMerge pull request #822 from python-discord/bug/mod/792/null-attachments (diff)
CI: make env vars used for coverage into pipeline variables
Makes the script for the coverage step cleaner.
-rw-r--r--azure-pipelines.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 16d1b7a2a..d97a13659 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -14,6 +14,12 @@ jobs:
variables:
PIP_CACHE_DIR: ".cache/pip"
PRE_COMMIT_HOME: $(Pipeline.Workspace)/pre-commit-cache
+ BOT_API_KEY: foo
+ BOT_SENTRY_DSN: blah
+ BOT_TOKEN: bar
+ REDDIT_CLIENT_ID: spam
+ REDDIT_SECRET: ham
+ WOLFRAM_API_KEY: baz
steps:
- task: UsePythonVersion@0
@@ -50,7 +56,7 @@ jobs:
- script: pre-commit run --all-files
displayName: 'Run pre-commit hooks'
- - script: BOT_API_KEY=foo BOT_SENTRY_DSN=blah BOT_TOKEN=bar WOLFRAM_API_KEY=baz REDDIT_CLIENT_ID=spam REDDIT_SECRET=ham coverage run -m xmlrunner
+ - script: coverage run -m xmlrunner
displayName: Run tests
- script: coverage report -m && coverage xml -o coverage.xml