by nailer · 9y ago · 0 comments
Rather than have every customer repeat these steps to transform their file, why don't you do it for them, and make a circle.yml to .circleci/config.yml converter?
I'm currently trying to work out what
dependencies:
pre:
Turns into for 2.0. There's instructions for dependencies:
override:
But I'm not sure if the same logic applies to pre, and the replacement shown there is indented in such a way that it looks like there's some missing information about what the parent container should be. All I can do is guess what the replacement for dependencies:
pre:
should be.For the 'dependencies: pre' step, you would replace that with a 'run' step, the same as outlined for 'dependencies: override'. We'll update the docs - thanks for pointing it out.
Edit: looking at another doc, https://circleci.com/docs/2.0/configuration-reference/#deplo..., the missing parent key is 'jobs:'
Also shouldn't "Search and Replace Deprecated 2.0 Keys" be "Search and Replace Deprecated 1.0 Keys" (or better "Search and Replace Deprecated Keys")?
https://circleci.com/docs/2.0/configuration-reference/#table...
Implies 'steps' is directly under 'jobs', whereas:
https://circleci.com/docs/2.0/configuration-reference/#full-...
shows that 'steps' is under 'jobs > build'
- Re:
* missing executor type
* is not supported executor type
Include https://circleci.com/docs/2.0/executor-types in the error.- This should be one error, not two.
- Why is 'working_directory' mandatory now? It wasn't before. Why not provide a default?
- 'working_directory: ~' fails. But 'working_directory: ~/' works (but then fails later). This is silly. Do path normalisation.
- https://circleci.com/docs/2.0/executor-types should include a node 8 image already. it's the current version of node and '@latest' won't be great when 9.x comes out.
- Re: https://discuss.circleci.com/t/directory-tmp-you-are-trying-.... The error is missing a word. Also checking out to a directory with existing contents should be fine.
Edit: finally got it:
https://gist.github.com/mikemaccana/b6a7be0351d769a9099f5fdb...
In CircleCI 2.0, there is no longer inferred commands. You just run the commands you want.