version:2
at the top of .circleci/config.yml
.Then let the circleci config validate
pass. If the circleci
command is not local, install it.
The CircleCI service includes the circleci
command, a tool to assist with local development. https://circleci.com/docs/2.0/local-cli/
The format is similar to that in which Heroku and AWS are the heroku
commands or the aws
commands, respectively.
There are many features of this tool, including the ability to verify that the .circleci/config.yml
format is correct.Specifically, circleci config validate
. 1.0->2.0, so maybe your .circleci/config.yml
is a format yaml that can only be recognized by 1.0.
I think it's better to debug it with circleci config validate
until at least it's in the form of yaml recognized by circleci (2.0). If circleci config validate
is successful, you should actually run it on circleci and fix it if it doesn't behave correctly.
© 2024 OneMinuteCode. All rights reserved.