Skip to content

Running CircleCI Locally

Ryan Meier edited this page Mar 25, 2020 · 2 revisions

With CircleCI version 2.0 we are able to run builds locally. This will help if there are any issues with a php version you may not be able to test locally or just to run all tests before creating a pull request.

Setup

To get started you will need the following:

  • Docker installed
  • CircleCI CLI installed Ensure you have ran circleci setup and Docker is running.

Running builds

Use CircleCI local testing sparingly. After a few runs, you could hit the rate limit cap on Github and experience SVN issues as well.

To run a build, use the circleci local execute command.

circleci local execute --job job_test_javascript

Or use this command to run all builds.

circleci local execute --job job_test_javascript \
&& circleci local execute --job job_php_code_standards \
&& circleci local execute --job job_test_php56_min \
&& circleci local execute --job job_test_php56 \
&& circleci local execute --job job_test_php70 \
&& circleci local execute --job job_test_php71 \
&& circleci local execute --job job_test_php72 \
&& circleci local execute --job job_test_php73_min \
&& circleci local execute --job job_test_php73
Clone this wiki locally