-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MM-16285] update circleci #69
Conversation
@mickmister We can perserve the coverage job. Hanzei added the coverage job to the orb: https://github.com/mattermost/circleci-orbs/blob/master/plugin-ci/orb.yml#L57 so you can just add it back here. |
@crspeller Should I add it back just as it was in this repo, before this PR? Or a different config that matches what |
^ Answered offline. |
Thanks really cool job! My coverage job never worked 😁 And thanks to @hanzei for adding coverage in orb! @crspeller we need #70 to repair test but my pr don't launch ci! Do you know why? And how to fix it? |
@manland The setting to build forks was disabled in CircleCI. Fixed it. |
Coverage job added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Do you need both a plugin-ci/coverage
and a plugin-ci/test
job in your workflow?
@hanzei I'm not sure I understand, I'm not too familiar with what each job is doing. Does the How do you suggest configuring the workflow? |
No. But
I would suggest you read through https://circleci.com/docs/2.0/workflows/. The docuentation explains this topic better then I could.
1/5: version: 2.1
orbs:
plugin-ci: mattermost/plugin-ci@volatile
workflows:
version: 2
ci:
jobs:
- plugin-ci/lint:
filters:
tags:
only: /^v.*/
- plugin-ci/coverage:
filters:
tags:
only: /^v.*/
- plugin-ci/build:
filters:
tags:
only: /^v.*/
- plugin-ci/deploy-ci:
filters:
branches:
only: master
context: plugin-ci
requires:
- plugin-ci/lint
- plugin-ci/coverage
- plugin-ci/build
- plugin-ci/deploy-release:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
context: plugin-ci
requires:
- plugin-ci/lint
- plugin-ci/coverage
- plugin-ci/build
- plugin-ci/deploy-release-github:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
context: matterbuild-github-token
requires:
- plugin-ci/lint
- plugin-ci/coverage
- plugin-ci/build |
Thank you for the explanation and docs link, @hanzei. I agree with the config, and have updated the PR. |
@crspeller Would you please check if codecov is enabled for this repo and enable it if not? |
Hi thanks for this PR! I think there is a little problem when replacing test by coverage : coverage don't fail if a test fail! |
Good catch @manland, this should not be happening. I opened a ticket for this. |
@hanzei How do I check if codecov is enabled? |
@crspeller Sending you a DM |
Updating circleci config to reflect the configuration used by up-to-date plugins. It looks like there is some existing configuration made by @manland that will be removed by this change.
https://mattermost.atlassian.net/browse/MM-16285