-
Notifications
You must be signed in to change notification settings - Fork 27
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
basic Circle-CI build #57
Conversation
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.
I'm not certain why the rtd status is unknown - for me it's green if I get it directly from the readthedocs.org. It's conditional on a cookie I have, so github's caching causes it to show as "unknown" even for me here.
General question: why Circle-CI vs Travis-CI? AFAIK, this would be the first OW project using Circle-CI, so this would introduce additional maintenance overhead to deal with two CI environments.
@@ -0,0 +1,46 @@ | |||
version: 2.1 |
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.
Circle-CI translates this config into a different format: resolves the &defaults reference and apparently inlines the "install" command. Is there an expectation that "defaults" or "install" objects will be reused to justify breaking them out?
https://circleci.com/gh/openworm/openworm_docs/4#config/containers/0
Is there
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.
not for this PR, but potentially for addressing #55. Could remove this for now if you prefer.
After discussing with @cheelee the conclusion was that any CI which integrates well with GitHub would be fine. I also have much more experience with Travis but recently started using Circle and it seems much quicker and easier to use. For example, these builds all complete about 30s after a commit is pushed. From my experience Travis takes much longer. I don't really have a strong preference though. |
http://docs.openworm.org/en/latest/community#contributing-to-the-openworm-documentation | ||
[![CircleCI][CI-badge]][CI] | ||
|
||
Simply modifying the markdown files in this repository should automatically |
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.
I created dev_openworm_docs because I didn't (and still don't) have maintainer-level access to https://readthedocs.org/projects/openworm/
@slarson or @travs - could you give @casperdcl and myself access?
OK. I think the write permissions requested by Circle-CI are excessive, which is part of my initial negative reaction, but since we're limiting it to this "bot", I'm OK with that as long as OpenWorm org admins get access credentials for the bot. I'll go ahead and merge in a couple hours. |
ah but the permissions (for managing e.g. webhooks) are a GitHub access level thing - the same would be required for a bot account on Travis. Unless I've misunderstood something. Of course in both cases, org admins should get credentials. |
You are somewhat mistaken. At least by default, Circle-CI requests a broader set of permissions for writing to public repositories than Travis-CI for open source projects. This is a more recent change though (I only looked into it the other day), so you may have missed it if you set up Travis-CI access a while ago. |
I just realized, @casperdcl should have all of the permissions you need to merge. So, fire when ready. |
Ah @mwatts15 I didn't know. Are there any particular permissions we need to be concerned about?
Yes I know but still wanted some approval first :) |
hmm.
|
I did a quick review of application access in the org and enabled some additional restrictions, but again, I think the access granted is OK in this case. My concern was more for granting access through my Github user for the sake of maintaining Circle-CI builds, but you've addressed that concern: thank you! I think we can have Circle-CI for this, especially if it's easier to achieve what you have planned with it than with Travis-CI. We can debate which one is preferred generally elsewhere/at a later time. |
fyi travis cron jobs can only be daily at most (https://docs.travis-ci.com/user/cron-jobs/) wheras with Circle-CI we can do even every minute. |
Add CI tests
master
hourly (takes just 10 sec to build and 20 to upload the build artifacts)Currently only tests that
mkdocs build
succeeds without errors.References:
https://circleci.com/docs/2.0/executor-types/