To validate some circleci stuff, I was able to run a “build locally” using the steps below. The local build runs in a docker container.
(Once) Install CircleCI Local CLI (brew install circleci
)
Convert the “real” config.yml into a self contained (non-workspace) config via:
circleci config process .circleci/config.yml > .circleci/local-config.yml
Run a local build with the following command:
circleci local execute -c .circleci/local-config.yml --job 'build'
With the above command, operations that cannot occur during a local build will show an error like this:
... Error: FAILED with error not supported
However, the build will proceed and can complete “successfully”, which allows you to verify scripts in your config, etc.
If the build does complete successfully, you should see a happy yellow Success!
message.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.